Skip to content

Commit

Permalink
Cypress: improved toast dismissal tests #1246
Browse files Browse the repository at this point in the history
  • Loading branch information
verheyenkoen committed Oct 13, 2023
1 parent 51ed8a1 commit 99fe0f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/e2e/issues/issue-1246.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()
Expand All @@ -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()

Expand Down

0 comments on commit 99fe0f4

Please sign in to comment.