Merge pull request 'fix: refs #8581 update invoiceInSerial test to correctly compare totals after filtering' (!1625) from 8581-fixInvoiceInSerialE2e into dev
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
Reviewed-on: #1625 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
c852f963e9
|
@ -10,14 +10,16 @@ describe('InvoiceInSerial', () => {
|
|||
});
|
||||
|
||||
it('should filter by last days ', () => {
|
||||
let before;
|
||||
cy.dataCy('vnTableCell_total')
|
||||
.invoke('text')
|
||||
.then((total) => (before = +total));
|
||||
|
||||
cy.dataCy('Last days_input').type('{selectall}1{enter}');
|
||||
cy.dataCy('vnTableCell_total')
|
||||
.invoke('text')
|
||||
.then((total) => expect(+total).to.be.lessThan(before));
|
||||
.then((before) => {
|
||||
cy.dataCy('Last days_input')
|
||||
.type('{selectall}1{enter}')
|
||||
.then(() => {
|
||||
cy.dataCy('vnTableCell_total')
|
||||
.invoke('text')
|
||||
.then((after) => expect(+after).to.be.lessThan(+before));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue