Skip to content

Commit

Permalink
fix: test e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeperrault authored and maximeperraultdev committed Aug 7, 2024
1 parent 6ea85f4 commit 2d3a316
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,15 @@ context('Reporting', () => {
if (!interception.response) {
assert.fail('`interception.response` is undefined.')
}
const reportingId = interception.request.body.id
assert.deepInclude(omit(interception.request.body, 'reportingSources[0].id'), {
missionId: 33,
openBy: 'XYZ',
reportingSources: [
{
controlUnitId: null,
displayedSource: 'Sémaphore de Dieppe',
reportingId: 13,
reportingId,
semaphoreId: 35,
sourceName: null,
sourceType: 'SEMAPHORE'
Expand Down Expand Up @@ -170,13 +171,14 @@ context('Reporting', () => {
}
cy.get(interception.request.body.attachedToMissionAtUtc).should('not.be.null')
cy.get(interception.request.body.detachedToMissionAtUtc).should('not.be.null')
const reportingId = interception.request.body.id
assert.deepInclude(omit(interception.request.body, 'reportingSources[0].id'), {
openBy: 'XYZ',
reportingSources: [
{
controlUnitId: null,
displayedSource: 'Sémaphore de Dieppe',
reportingId: 13,
reportingId,
semaphoreId: 35,
sourceName: null,
sourceType: 'SEMAPHORE'
Expand Down

0 comments on commit 2d3a316

Please sign in to comment.