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', () => {
|
||||
let correctiveCount;
|
||||
let noCorrectiveCount;
|
||||
|
||||
cy.dataCy('vnCheckboxRectificative').click();
|
||||
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
||||
.children()
|
||||
.its('length')
|
||||
.then((len) => (correctiveCount = len));
|
||||
cy.dataCy('vnCheckboxRectificative').click();
|
||||
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
||||
.children()
|
||||
.its('length')
|
||||
.then((len) => (noCorrectiveCount = len));
|
||||
|
||||
expect(correctiveCount).to.not.equal(noCorrectiveCount);
|
||||
.then((firstCount) => {
|
||||
cy.dataCy('vnCheckboxRectificative').click();
|
||||
cy.waitTableLoad();
|
||||
cy.get('[data-cy="vnTable"] .q-virtual-scroll__content')
|
||||
.children()
|
||||
.its('length')
|
||||
.then((secondCount) => {
|
||||
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