#8219 Added InvoiceOut e2e tests #1001

Merged
jon merged 24 commits from 8219-InvoiceOutE2E into dev 2025-01-08 06:41:33 +00:00
1 changed files with 30 additions and 0 deletions
Showing only changes of commit f9d897cdde - Show all commits

View File

@ -0,0 +1,30 @@
/// <reference types="cypress" />
jon marked this conversation as resolved
Review

Este test no pasa nunca.

Puedes confirmarmelo?

Este test no pasa nunca. Puedes confirmarmelo?
describe('InvoiceOut global invoicing', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('administrative');
cy.visit(`/#/invoice-out/global-invoicing`);
});
it('should invoice the client tickets', () => {
jon marked this conversation as resolved
Review

Esto lo haces por evitar usar fillInForm?

Esto lo haces por evitar usar fillInForm?
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');
});
});