Skip to content

Commit bf11f2c

Browse files
fix(test): Harden test's check on close
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 6cec622 commit bf11f2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cypress/e2e/helpers/viewFilteringSelectionSetup.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const addRow = (title, selection, multiSelection, checked) => {
8181

8282
cy.get('[data-cy="createRowSaveButton"]').click()
8383
cy.get('[data-cy="createRowModal"]').should('not.exist')
84-
cy.get('.toastify.toast-success').should('be.visible')
85-
cy.get('.toastify.toast-success .toast-close').click({ multiple: true })
84+
cy.get('body').then($body => {
85+
$body.find('.toastify.toast-success .toast-close').each((_, el) => el.click())
86+
})
8687
}

0 commit comments

Comments
 (0)