From c1903a8e55e2cd48b5ccca395fa2ae5af03478be Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 6 Feb 2025 09:21:28 +0100 Subject: [PATCH] test: refs #6695 e2e better checkNotification --- test/cypress/support/commands.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 5f0d36741..7d497c433 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) => {