salix-front/test/cypress/integration/invoiceOut/invoiceOutMakeInvoice.spec.js

24 lines
929 B
JavaScript
Raw Normal View History

/// <reference types="cypress" />
2024-11-28 12:00:53 +00:00
describe('InvoiceOut manual invoice', () => {
const notification = '.q-notification__message';
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/ticket/list`);
cy.get('#searchbar input').type('{enter}');
});
it('should create an invoice from a ticket and go to that invoice', () => {
cy.get('[label="Customer ID"]').type('1101{enter}');
cy.get(
'[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner'
).click();
cy.dataCy('ticketListMakeInvoiceBtn').click();
cy.get(notification).should('contains.text', 'Data saved');
cy.get('.q-virtual-scroll__content > :nth-child(1) > :nth-child(3)').click();
cy.get(':nth-child(8) > .value > .link').click();
2024-11-28 12:00:53 +00:00
cy.get('.header > :nth-child(3) > .q-btn__content').click();
});
});