diff --git a/cypress/e2e/issues/issue-1246.cy.ts b/cypress/e2e/issues/issue-1246.cy.ts index b01af9911..3090561cd 100644 --- a/cypress/e2e/issues/issue-1246.cy.ts +++ b/cypress/e2e/issues/issue-1246.cy.ts @@ -79,6 +79,8 @@ describe('Issue #1246: Close button on toast does not work', () => { cy.ensureNoModal() + cy.ensureToast('Publication was successfully withdrawn.').closeToast() + // Make sure withdraw-toast is gone first cy.ensureNoToast() @@ -108,7 +110,7 @@ describe('Issue #1246: Close button on toast does not work', () => { assertToast('Publication was successfully locked.') }) - it('should be possible to dismiss the locked publication toast', () => { + it('should be possible to dismiss the unlocked publication toast', () => { setUpPublication() cy.contains('.btn', 'Publish to Biblio').click() @@ -120,6 +122,8 @@ describe('Issue #1246: Close button on toast does not work', () => { cy.contains('.btn', 'Lock record').click() + cy.ensureToast('Publication was successfully locked.').closeToast() + // Make sure lock-toast is gone first cy.ensureNoToast()