test: refs #6695 e2e better checkNotification
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
02fc8fce52
commit
c1903a8e55
|
@ -329,10 +329,13 @@ Cypress.Commands.add('openUserPanel', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('checkNotification', (text) => {
|
Cypress.Commands.add('checkNotification', (text) => {
|
||||||
cy.get('.q-notification')
|
cy.get('.q-notification', { timeout: 5000 })
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.contains(text, { timeout: 5000 })
|
.then(() => {
|
||||||
.should('be.visible');
|
cy.get('.q-notification')
|
||||||
|
.filter((_, el) => Cypress.$(el).text().includes(text))
|
||||||
|
.should('have.length.greaterThan', 0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('openActions', (row) => {
|
Cypress.Commands.add('openActions', (row) => {
|
||||||
|
|
Loading…
Reference in New Issue