diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 5f0d367414..7d497c433f 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -329,10 +329,13 @@ Cypress.Commands.add('openUserPanel', () => { }); Cypress.Commands.add('checkNotification', (text) => { - cy.get('.q-notification') + cy.get('.q-notification', { timeout: 5000 }) .should('be.visible') - .contains(text, { timeout: 5000 }) - .should('be.visible'); + .then(() => { + cy.get('.q-notification') + .filter((_, el) => Cypress.$(el).text().includes(text)) + .should('have.length.greaterThan', 0); + }); }); Cypress.Commands.add('openActions', (row) => {