22 lines
757 B
JavaScript
22 lines
757 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
describe('InvoiceInCorrective', () => {
|
|
const createRectificative = '.q-menu > .q-list > :nth-child(4) > .q-item__section';
|
|
const rectificativeSection = '.q-drawer-container .q-list > a:nth-child(6)';
|
|
const saveDialog = '.q-card > .q-card__actions > .q-btn--standard ';
|
|
|
|
it('should create a correcting invoice', () => {
|
|
cy.viewport(1280, 720);
|
|
cy.login('developer');
|
|
cy.visit(`/#/invoice-in/1/summary`);
|
|
cy.waitForElement('.q-page');
|
|
|
|
cy.openActionsDescriptor();
|
|
|
|
cy.get(createRectificative).click();
|
|
cy.get(saveDialog).click();
|
|
cy.get(rectificativeSection).click();
|
|
cy.get('tbody > tr:visible').should('have.length', 1);
|
|
});
|
|
});
|