test: refs #6695 e2e better checkNotification
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-06 09:21:28 +01:00
parent 02fc8fce52
commit c1903a8e55
1 changed files with 6 additions and 3 deletions

View File

@ -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) => {