salix-front/test/cypress/integration/invoiceOut/invoiceOutglobalInvoicing.s...

24 lines
1.0 KiB
JavaScript
Raw Normal View History

/// <reference types="cypress" />
describe('InvoiceOut manual invoice path', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/invoice-out/global-invoicing`);
});
it('should filter and download as CSV', () => {
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="Max date ticket"] > .q-field > .q-field__inner > .q-field__control'
).type('01-01-2000{enter}');
});
});