diff --git a/test/cypress/integration/worker/workerNotificationsManager.spec.js b/test/cypress/integration/worker/workerNotificationsManager.spec.js index cffb6475a..ad48d8a6c 100644 --- a/test/cypress/integration/worker/workerNotificationsManager.spec.js +++ b/test/cypress/integration/worker/workerNotificationsManager.spec.js @@ -2,8 +2,8 @@ describe('WorkerNotificationsManager', () => { const salesPersonId = 18; const developerId = 9; - const activeList = '.q-infinite-scroll > :nth-child(1)'; - const availableList = '.q-infinite-scroll > :nth-child(2)'; + const activeList = ':nth-child(1) > .q-list'; + const availableList = ':nth-child(2) > .q-list'; const firstActiveNotification = ':nth-child(1) > .q-list > :nth-child(1) > .q-item > .q-toggle > .q-toggle__inner'; const firstAvailableNotification = @@ -29,6 +29,7 @@ describe('WorkerNotificationsManager', () => { cy.waitForElement(availableList); cy.get(activeList) + .children() .its('length') .then((beforeSize) => { cy.get(firstAvailableNotification).click(); @@ -45,10 +46,13 @@ describe('WorkerNotificationsManager', () => { cy.waitForElement(availableList); cy.get(availableList) + .children() .its('length') .then((beforeSize) => { cy.get(firstActiveNotification).click(); - cy.get(availableList).children().should('have.length', beforeSize); + cy.get(availableList) + .children() + .should('have.length', beforeSize + 1); }); }); @@ -58,6 +62,7 @@ describe('WorkerNotificationsManager', () => { cy.waitForElement(availableList); cy.get(activeList) + .children() .its('length') .then((beforeSize) => { cy.get(firstAvailableNotification).click();