test: refs #8581 update invoiceInList and invoiceInSummary specs for improved filtering and navigation

This commit is contained in:
Jorge Penadés 2025-03-07 11:12:04 +01:00
parent f22caaa678
commit c5f4f8d5c7
2 changed files with 3 additions and 2 deletions

View File

@ -103,6 +103,7 @@ describe('InvoiceInList', () => {
cols: [{ name: 'supplierFk', val: 'Farmer King' }],
});
});
it('should filter by supplierRef param', () => {
cy.dataCy('Supplier ref_input').type('1234{enter}');
cy.intercept('GET', /\/api\/InvoiceIns\/\d+\/getTotals$/).as('invoice');
@ -115,7 +116,7 @@ describe('InvoiceInList', () => {
cy.validateVnTableRows({ cols: [{ name: 'supplierFk', val: 'plants sl' }] });
});
it('should filter by FI param', () => {
it('should filter by Serial param', () => {
cy.dataCy('Serial_input').type('R');
cy.validateVnTableRows({ cols: [{ name: 'serial', val: 'r' }] });
});

View File

@ -1,7 +1,7 @@
describe('InvoiceInSummary', () => {
beforeEach(() => {
cy.login('administrative');
cy.visit('/#/invoice-in/4/summary');
cy.visit('/#/invoice-in/3/summary');
});
it('should booking and unbooking the invoice properly', () => {