2024-02-06 12:19:56 +00:00
|
|
|
/// <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)';
|
2024-02-06 14:11:59 +00:00
|
|
|
const saveDialog = '.q-card > .q-card__actions > .q-btn--standard ';
|
2024-02-06 12:19:56 +00:00
|
|
|
|
|
|
|
it('should create a correcting invoice', () => {
|
2024-06-25 14:07:26 +00:00
|
|
|
cy.viewport(1280, 720);
|
2024-02-06 12:19:56 +00:00
|
|
|
cy.login('developer');
|
|
|
|
cy.visit(`/#/invoice-in/1/summary?limit=10`);
|
|
|
|
|
|
|
|
cy.openActionsDescriptor();
|
|
|
|
|
|
|
|
cy.get(createRectificative).click();
|
2024-02-06 14:11:59 +00:00
|
|
|
cy.get(saveDialog).click();
|
2024-02-06 12:19:56 +00:00
|
|
|
cy.get(rectificativeSection).click();
|
|
|
|
cy.get('tbody > tr:visible').should('have.length', 1);
|
|
|
|
});
|
|
|
|
});
|