0
0
Fork 0
salix-front-mindshore-fork2/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js

25 lines
927 B
JavaScript
Raw Normal View History

describe('InvoiceInDescriptor', () => {
2024-05-24 07:56:16 +00:00
const dialogBtns = '.q-card__actions button';
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(1) > .q-item__section';
2024-05-24 07:56:16 +00:00
const isBookedField =
'.q-card:nth-child(3) .vn-label-value:nth-child(5) > .value > span';
it('should booking and unbooking the invoice properly', () => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/summary?limit=10`);
cy.openLeftMenu();
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
2024-05-24 07:56:16 +00:00
cy.get(dialogBtns).eq(1).click();
cy.get('.fullscreen').first().click();
cy.get(isBookedField).should('have.attr', 'title', 'true');
cy.openLeftMenu();
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
2024-05-24 07:56:16 +00:00
cy.get(dialogBtns).eq(1).click();
cy.get(isBookedField).should('have.attr', 'title', 'false');
});
});