2024-03-07 14:46:38 +00:00
|
|
|
describe('InvoiceInDescriptor', () => {
|
2025-01-31 08:26:14 +00:00
|
|
|
const book = '.summaryHeader > .no-wrap > .q-btn';
|
|
|
|
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(5) > .q-item__section';
|
|
|
|
const checkbox = ':nth-child(5) > .q-checkbox';
|
2024-05-24 07:56:16 +00:00
|
|
|
|
2024-03-07 14:46:38 +00:00
|
|
|
it('should booking and unbooking the invoice properly', () => {
|
2024-06-25 14:18:53 +00:00
|
|
|
cy.viewport(1280, 720);
|
2024-03-07 14:46:38 +00:00
|
|
|
cy.login('developer');
|
2024-06-25 14:18:53 +00:00
|
|
|
cy.visit('/#/invoice-in/1/summary');
|
2024-07-05 12:58:02 +00:00
|
|
|
cy.waitForElement('.q-page');
|
2024-03-07 14:46:38 +00:00
|
|
|
|
2025-01-31 08:26:14 +00:00
|
|
|
cy.get(book).click();
|
|
|
|
cy.dataCy('VnConfirm_confirm').click();
|
|
|
|
cy.get(checkbox).invoke('attr', 'aria-checked').should('eq', 'true');
|
2024-03-07 14:46:38 +00:00
|
|
|
|
2025-01-31 08:26:14 +00:00
|
|
|
cy.dataCy('descriptor-more-opts').first().click();
|
2024-03-07 14:46:38 +00:00
|
|
|
cy.get(firstDescritorOpt).click();
|
2025-01-31 08:26:14 +00:00
|
|
|
cy.dataCy('VnConfirm_confirm').click();
|
|
|
|
cy.get(checkbox).invoke('attr', 'aria-checked').should('eq', 'false');
|
2024-03-07 14:46:38 +00:00
|
|
|
});
|
|
|
|
});
|