28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
|
/// <reference types="cypress" />
|
||
|
describe('InvoiceOut manual invoice path', () => {
|
||
|
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"] > .q-field > .q-field__inner > .q-field__control'
|
||
|
).type('1101{enter}');
|
||
|
cy.get(
|
||
|
'[data-q-vs-anchor=""] > :nth-child(1) > .q-checkbox > .q-checkbox__inner'
|
||
|
).click();
|
||
|
cy.get(
|
||
|
'[style="transform: translate(-256px, 0px); margin: 80px 20px; z-index: 2;"] > div > .q-btn'
|
||
|
).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();
|
||
|
cy.get('[href="#/invoice-out/6/summary"] > .q-btn > .q-btn__content').click();
|
||
|
});
|
||
|
});
|