24 lines
726 B
JavaScript
24 lines
726 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 ', () => {
|
|
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));
|
|
});
|
|
});
|