8714-devToTest #1547

Merged
alexm merged 712 commits from 8714-devToTest into test 2025-03-04 14:08:01 +00:00
1 changed files with 8 additions and 3 deletions
Showing only changes of commit 743e07cd64 - Show all commits

View File

@ -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();