Skip to content

Commit

Permalink
Fix manual pno form upload e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 18, 2024
1 parent 5a4c3f1 commit 82dc0c4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,16 @@ context('Side Window > Manual Prior Notification Form > Form', () => {
})

it('Should attach and remove a document to a manual prior notification', () => {
cy.intercept('GET', `/bff/v1/prior_notifications/00000000-0000-4000-0000-000000000002/uploads`).as('getUploads')
cy.intercept('GET', `/bff/v1/prior_notifications/00000000-0000-4000-0000-000000000008/uploads`).as('getUploads')
cy.intercept(
'POST',
`/bff/v1/prior_notifications/00000000-0000-4000-0000-000000000002/uploads?isManualPriorNotification=false&operationDate=*`
`/bff/v1/prior_notifications/00000000-0000-4000-0000-000000000008/uploads?isManualPriorNotification=true&operationDate=*`
).as('uploadDocument')
cy.intercept('DELETE', `/bff/v1/prior_notifications/00000000-0000-4000-0000-000000000002/uploads/*`).as(
cy.intercept('DELETE', `/bff/v1/prior_notifications/00000000-0000-4000-0000-000000000008/uploads/*`).as(
'deleteDocument'
)

editSideWindowPriorNotification(`DOS FIN`, '00000000-0000-4000-0000-000000000002')
editSideWindowPriorNotification(`DÉVOILÉ`, '00000000-0000-4000-0000-000000000008')

cy.wait('@getUploads')

Expand Down

0 comments on commit 82dc0c4

Please sign in to comment.