forked from verdnatura/salix-front
refactor: refactored test e2e & changed openActionsDescriptor function
This commit is contained in:
parent
05d0322133
commit
9b3bb6ce3a
|
@ -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();
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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('-');
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue