Skip to content

Commit

Permalink
Update e2e test for logbook pno sent messages list action flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Oct 28, 2024
1 parent 91dc7e2 commit fca2d73
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ context('Side Window > Logbook Prior Notification Form > Behavior', () => {
cy.wait('@getFakePriorNotification')

// -------------------------------------------------------------------------
// Superuser opens the prior notification sent messages
// The prior notification sent message list is now updated with an error

cy.clickButton('Voir les détails de la diffusion du préavis', { withoutScroll: true })
cy.wait('@getFakePriorNotificationSentMessages2')

cy.contains('Échec de diffusion').should('be.visible')
Expand Down Expand Up @@ -259,13 +258,11 @@ context('Side Window > Logbook Prior Notification Form > Behavior', () => {
).as('getFakePriorNotificationSentMessages3')

cy.wait('@getFakePriorNotification')
// Fingerprint has changed which should trigger refetching
cy.wait('@getFakePriorNotificationSentMessages3')

// -------------------------------------------------------------------------
// Superuser opens the prior notification sent messages
// The prior notification sent message list is now updated with a new successful send (and the previous failed one)

cy.clickButton('Voir les détails de la diffusion du préavis', { withoutScroll: true })
cy.wait('@getFakePriorNotificationSentMessages3')

cy.contains('Vérifié et diffusé').should('be.visible')
cy.contains('Unité 1 (Organisation 1)').should('be.visible')
Expand Down

0 comments on commit fca2d73

Please sign in to comment.