salix-front/test/cypress/integration/invoiceIn/invoiceInSerial.spec.js

26 lines
839 B
JavaScript

describe('InvoiceInSerial', () => {
beforeEach(() => {
cy.login('administrative');
cy.visit('#/invoice-in/serial');
});
it('should filter by serial number', () => {
cy.dataCy('serial_input').type('R{enter}');
cy.validateVnTableRows({ cols: [{ name: 'serial', val: 'r' }] });
});
it('should filter by last days ', () => {
cy.dataCy('vnTableCell_total')
.invoke('text')
.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));
});
});
});
});