21 lines
668 B
JavaScript
21 lines
668 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)';
|
||
|
|
||
|
it('should create a correcting invoice', () => {
|
||
|
cy.login('developer');
|
||
|
cy.visit(`/#/invoice-in/1/summary?limit=10`);
|
||
|
|
||
|
cy.openLeftMenu();
|
||
|
cy.openActionsDescriptor();
|
||
|
|
||
|
cy.get(createRectificative).click();
|
||
|
cy.clickConfirm();
|
||
|
cy.openLeftMenu();
|
||
|
cy.get(rectificativeSection).click();
|
||
|
cy.get('tbody > tr:visible').should('have.length', 1);
|
||
|
});
|
||
|
});
|