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

21 lines
815 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-06-28 10:46:14 +00:00
const isBookedField = '.q-card:nth-child(3) .vn-label-value:nth-child(5) .q-checkbox';
2024-05-24 07:56:16 +00:00
it('should booking and unbooking the invoice properly', () => {
2024-06-25 14:18:53 +00:00
cy.viewport(1280, 720);
cy.login('developer');
2024-06-25 14:18:53 +00:00
cy.visit('/#/invoice-in/1/summary');
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
2024-05-24 07:56:16 +00:00
cy.get(dialogBtns).eq(1).click();
2024-06-28 10:46:14 +00:00
cy.get(isBookedField).should('have.attr', 'aria-checked', 'true');
cy.get(firstDescritorOpt).click();
2024-05-24 07:56:16 +00:00
cy.get(dialogBtns).eq(1).click();
2024-06-28 10:46:14 +00:00
cy.get(isBookedField).should('have.attr', 'aria-checked', 'false');
});
});