fix: refs #6695 fix e2e's
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-10 10:57:04 +01:00
parent b8b7af6907
commit 257edbbd13
1 changed files with 3 additions and 6 deletions

View File

@ -329,14 +329,11 @@ Cypress.Commands.add('openUserPanel', () => {
}); });
Cypress.Commands.add('checkNotification', (text) => { Cypress.Commands.add('checkNotification', (text) => {
cy.get('.q-notification', { timeout: 5000 }) cy.get('.q-notification', { timeout: 10000 })
.should('be.visible') .should('be.visible')
.then(() => {
cy.get('.q-notification')
.filter((_, el) => Cypress.$(el).text().includes(text)) .filter((_, el) => Cypress.$(el).text().includes(text))
.should('have.length.greaterThan', 0); .should('have.length.greaterThan', 0);
}); });
});
Cypress.Commands.add('openActions', (row) => { Cypress.Commands.add('openActions', (row) => {
cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click(); cy.get('tbody > tr').eq(row).find('.actions > .q-btn').click();