From f9d897cdde6db65ee0fb3b9899b1251e80f6944b Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 3 Dec 2024 12:52:37 +0100 Subject: [PATCH] feat: refs #8219 global invoicing e2e --- .../invoiceOut/invvoiceOutGlobal.spec.js | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/cypress/integration/invoiceOut/invvoiceOutGlobal.spec.js diff --git a/test/cypress/integration/invoiceOut/invvoiceOutGlobal.spec.js b/test/cypress/integration/invoiceOut/invvoiceOutGlobal.spec.js new file mode 100644 index 000000000..48c0e5758 --- /dev/null +++ b/test/cypress/integration/invoiceOut/invvoiceOutGlobal.spec.js @@ -0,0 +1,30 @@ +/// +describe('InvoiceOut global invoicing', () => { + beforeEach(() => { + cy.viewport(1920, 1080); + cy.login('administrative'); + cy.visit(`/#/invoice-out/global-invoicing`); + }); + + it('should invoice the client tickets', () => { + cy.get('.q-mb-sm > .q-radio__inner').click(); + cy.get('[data-cy="InvoiceOutGlobalClientSelect"]').type('1102'); + cy.get('.q-menu .q-item').contains('1102').click(); + cy.get('[data-cy="InvoiceOutGlobalSerialSelect"]').click(); + cy.get('.q-menu .q-item').contains('global').click(); + cy.get('[data-cy="InvoiceOutGlobalCompanySelect"]').type('VNL'); + cy.get('.q-menu .q-item').contains('VNL').click(); + cy.get('[data-cy="InvoiceOutGlobalPrinterSelect"]').type('printer1'); + cy.get('.q-menu .q-item').contains('printer1').click(); + cy.get( + '[label="Invoice date"] > .q-field > .q-field__inner > .q-field__control' + ).click(); + cy.get(':nth-child(5) > div > .q-btn > .q-btn__content > .block').click(); + cy.get('.q-date__years-content > :nth-child(2) > .q-btn').click(); + cy.get('.q-date__calendar-days > :nth-child(6) > .q-btn').click(); + cy.get( + '[label="Max date ticket"] > .q-field > .q-field__inner > .q-field__control' + ).type('01-01-2001{enter}'); + cy.get('.q-card').should('be.visible'); + }); +});