From 78552a49fad939e2f686650c3ea760d41c4a6783 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 20 Feb 2025 08:09:06 +0100 Subject: [PATCH] feat: refs #8599 added new test and translations --- src/pages/InvoiceOut/locale/en.yml | 1 + src/pages/InvoiceOut/locale/es.yml | 1 + .../integration/invoiceOut/invoiceOutList.spec.js | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/InvoiceOut/locale/en.yml b/src/pages/InvoiceOut/locale/en.yml index 9dd31d186..f1baef432 100644 --- a/src/pages/InvoiceOut/locale/en.yml +++ b/src/pages/InvoiceOut/locale/en.yml @@ -24,6 +24,7 @@ invoiceOut: min: Min max: Max hasPdf: Has PDF + search: Contains card: issued: Issued customerCard: Customer card diff --git a/src/pages/InvoiceOut/locale/es.yml b/src/pages/InvoiceOut/locale/es.yml index 79ceb4aa8..afca27871 100644 --- a/src/pages/InvoiceOut/locale/es.yml +++ b/src/pages/InvoiceOut/locale/es.yml @@ -24,6 +24,7 @@ invoiceOut: min: Min max: Max hasPdf: Tiene PDF + search: Contiene card: issued: Fecha emisiĆ³n customerCard: Ficha del cliente diff --git a/test/cypress/integration/invoiceOut/invoiceOutList.spec.js b/test/cypress/integration/invoiceOut/invoiceOutList.spec.js index 24bc4ccf8..d3a84d226 100644 --- a/test/cypress/integration/invoiceOut/invoiceOutList.spec.js +++ b/test/cypress/integration/invoiceOut/invoiceOutList.spec.js @@ -9,6 +9,8 @@ describe('InvoiceOut list', () => { 'tbody > :nth-child(1) > :nth-child(1) > .q-checkbox > .q-checkbox__inner '; const summaryPopupIcon = '.header > :nth-child(2) > .q-btn__content > .q-icon'; const filterBtn = '.q-scrollarea__content > .q-btn--standard > .q-btn__content'; + const firstSummaryIcon = + ':nth-child(1) > .text-right > [data-cy="tableAction-0"] > .q-btn__content > .q-icon'; beforeEach(() => { cy.viewport(1920, 1080); @@ -17,7 +19,7 @@ describe('InvoiceOut list', () => { cy.typeSearchbar('{enter}'); }); - it('should download one pdf', () => { + it('should download one pdf from the subtoolbar button', () => { cy.get(firstRowCheckbox).click(); cy.dataCy('InvoiceOutDownloadPdfBtn').click(); }); @@ -27,6 +29,12 @@ describe('InvoiceOut list', () => { cy.dataCy('InvoiceOutDownloadPdfBtn').click(); }); + it('should open the invoice descriptor from table icon', () => { + cy.get(firstSummaryIcon).click(); + cy.get('.cardSummary').should('be.visible'); + cy.get('.summaryHeader > div').should('include.text', 'A1111111'); + }); + it('should open the client descriptor', () => { cy.get(firstRowDescriptor).click(); cy.get(summaryPopupIcon).click();