2024-03-07 14:46:38 +00:00
|
|
|
describe('InvoiceInDescriptor', () => {
|
|
|
|
const saveDialog = '.q-btn--unelevated > .q-btn__content > .block';
|
|
|
|
const firstDescritorOpt = '.q-menu > .q-list > :nth-child(1) > .q-item__section';
|
2024-03-08 15:52:58 +00:00
|
|
|
const screen = '.q-drawer-container > .fullscreen';
|
2024-03-07 14:46:38 +00:00
|
|
|
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();
|
|
|
|
cy.get(saveDialog).click();
|
2024-03-08 15:52:58 +00:00
|
|
|
cy.get(screen).click();
|
2024-03-07 14:46:38 +00:00
|
|
|
cy.get('.q-checkbox').should('have.attr', 'aria-checked', 'true');
|
|
|
|
|
|
|
|
cy.openLeftMenu();
|
|
|
|
cy.openActionsDescriptor();
|
|
|
|
cy.get(firstDescritorOpt).click();
|
|
|
|
cy.get(saveDialog).click();
|
|
|
|
cy.get('.q-checkbox').should('have.attr', 'aria-checked', 'false');
|
|
|
|
});
|
|
|
|
});
|