2024-11-26 11:24:02 +00:00
|
|
|
/// <reference types="cypress" />
|
2024-11-28 12:00:53 +00:00
|
|
|
describe('InvoiceOut manual invoice', () => {
|
2024-11-26 11:24:02 +00:00
|
|
|
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', () => {
|
2024-12-04 07:37:17 +00:00
|
|
|
cy.get('[label="Customer ID"]').type('1101{enter}');
|
2024-11-26 11:24:02 +00:00
|
|
|
cy.get(
|
|
|
|
'[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner'
|
|
|
|
).click();
|
2024-12-04 07:37:17 +00:00
|
|
|
cy.dataCy('ticketListMakeInvoiceBtn').click();
|
2024-11-26 11:24:02 +00:00
|
|
|
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();
|
2024-11-26 11:24:02 +00:00
|
|
|
});
|
|
|
|
});
|