0
0
Fork 0

refactor: refactored test e2e & changed openActionsDescriptor function

This commit is contained in:
Jon Elias 2024-07-05 07:53:12 +02:00
parent 05d0322133
commit 9b3bb6ce3a
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ describe('InvoiceInCorrective', () => {
cy.login('developer');
cy.visit(`/#/invoice-in/1/summary?limit=10`);
cy.get('.header > :nth-child(3) > .q-btn__content > .q-icon').click();
cy.openActionsDescriptor();
cy.get(createRectificative).click();
cy.get(saveDialog).click();

View File

@ -8,7 +8,7 @@ describe('InvoiceInDescriptor', () => {
cy.login('developer');
cy.visit('/#/invoice-in/1/summary');
cy.get('.header > :nth-child(3) > .q-btn__content > .q-icon').click();
cy.openActionsDescriptor();
cy.get(firstDescritorOpt).click();
cy.get(dialogBtns).eq(1).click();
cy.get(isBookedField).should('have.attr', 'aria-checked', 'true');

View File

@ -13,7 +13,7 @@ describe('Ticket descriptor', () => {
it('should clone the ticket without warehouse', () => {
cy.openLeftMenu();
cy.get('.header > :nth-child(3) > .q-btn__content > .q-icon').click();
cy.openActionsDescriptor();
cy.get(toCloneOpt).click();
cy.clickConfirm();
cy.get(warehouseValue).contains('-');

View File

@ -239,5 +239,5 @@ Cypress.Commands.add('validateContent', (selector, expectedValue) => {
});
Cypress.Commands.add('openActionsDescriptor', () => {
cy.get('.descriptor > .header > .q-btn').click();
cy.get('.header > :nth-child(3) > .q-btn__content > .q-icon').click();
});