From c5f4f8d5c7053d04a4cebb4dd54ae2a1ab8801e1 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 7 Mar 2025 11:12:04 +0100 Subject: [PATCH] test: refs #8581 update invoiceInList and invoiceInSummary specs for improved filtering and navigation --- test/cypress/integration/invoiceIn/invoiceInList.spec.js | 3 ++- test/cypress/integration/invoiceIn/invoiceInSummary.spec.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js index 0d6c4ba04..d03d1e96a 100644 --- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js @@ -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' }] }); }); diff --git a/test/cypress/integration/invoiceIn/invoiceInSummary.spec.js b/test/cypress/integration/invoiceIn/invoiceInSummary.spec.js index feccacbfb..72dbdd9a8 100644 --- a/test/cypress/integration/invoiceIn/invoiceInSummary.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInSummary.spec.js @@ -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', () => {