fix: refs #8581 enhance filtering logic in InvoiceInList tests and add waitTableLoad command
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
65a7ca1848
commit
e49ab4dfa4
|
@ -161,21 +161,20 @@ describe('InvoiceInList', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should filter by correctingFk param', () => {
|
it('should filter by correctingFk param', () => {
|
||||||
let correctiveCount;
|
|
||||||
let noCorrectiveCount;
|
|
||||||
|
|
||||||
cy.dataCy('vnCheckboxRectificative').click();
|
cy.dataCy('vnCheckboxRectificative').click();
|
||||||
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
||||||
.children()
|
.children()
|
||||||
.its('length')
|
.its('length')
|
||||||
.then((len) => (correctiveCount = len));
|
.then((firstCount) => {
|
||||||
cy.dataCy('vnCheckboxRectificative').click();
|
cy.dataCy('vnCheckboxRectificative').click();
|
||||||
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
cy.waitTableLoad();
|
||||||
.children()
|
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
||||||
.its('length')
|
.children()
|
||||||
.then((len) => (noCorrectiveCount = len));
|
.its('length')
|
||||||
|
.then((secondCount) => {
|
||||||
expect(correctiveCount).to.not.equal(noCorrectiveCount);
|
expect(firstCount).to.not.equal(secondCount);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -593,3 +593,5 @@ Cypress.Commands.add('checkQueryParams', (expectedParams = {}) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Cypress.Commands.add('waitTableLoad', () => cy.waitForElement('[data-q-vs-anchor]'));
|
||||||
|
|
Loading…
Reference in New Issue