diff --git a/test/cypress/integration/entry/myEntry.spec.js b/test/cypress/integration/entry/myEntry.spec.js index 14c09176ea..78bc31f566 100644 --- a/test/cypress/integration/entry/myEntry.spec.js +++ b/test/cypress/integration/entry/myEntry.spec.js @@ -1,7 +1,7 @@ describe('WagonTypeCreate', () => { beforeEach(() => { cy.viewport(1920, 1080); - cy.login('customer'); + cy.login('supplier'); cy.visit(`/#/entry/my`, { onBeforeLoad(win) { cy.stub(win, 'open'); diff --git a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js index 7863d6bfa7..f553c1e742 100644 --- a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js @@ -9,6 +9,7 @@ describe('InvoiceInCorrective', () => { cy.viewport(1280, 720); cy.login('developer'); cy.visit(`/#/invoice-in/1/summary?limit=10`); + cy.waitForElement('.q-page', 6000); cy.openActionsDescriptor(); diff --git a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js index a2e9998bb7..46927bfb16 100644 --- a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js @@ -7,6 +7,7 @@ describe('InvoiceInDescriptor', () => { cy.viewport(1280, 720); cy.login('developer'); cy.visit('/#/invoice-in/1/summary'); + cy.waitForElement('.q-page', 6000); cy.openActionsDescriptor(); cy.get(firstDescritorOpt).click(); diff --git a/test/cypress/integration/ticket/ticketDescriptor.spec.js b/test/cypress/integration/ticket/ticketDescriptor.spec.js index fc920f346b..138001ad28 100644 --- a/test/cypress/integration/ticket/ticketDescriptor.spec.js +++ b/test/cypress/integration/ticket/ticketDescriptor.spec.js @@ -9,6 +9,7 @@ describe('Ticket descriptor', () => { cy.login('developer'); cy.visit(`/#/ticket/${ticketId}/summary`); + cy.waitForElement('.q-page', 7000); }); it('should clone the ticket without warehouse', () => { diff --git a/test/cypress/integration/wagonType/wagonTypeCreate.spec.js b/test/cypress/integration/wagonType/wagonTypeCreate.spec.js index bcf7fe841e..5e8b6b8883 100644 --- a/test/cypress/integration/wagonType/wagonTypeCreate.spec.js +++ b/test/cypress/integration/wagonType/wagonTypeCreate.spec.js @@ -3,6 +3,7 @@ describe('WagonTypeCreate', () => { cy.viewport(1920, 1080); cy.login('developer'); cy.visit('/#/wagon/type/create'); + cy.waitForElement('.q-page', 6000); }); function chooseColor(color) { diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 4ed940ecde..3be4a9f0cc 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -239,5 +239,5 @@ Cypress.Commands.add('validateContent', (selector, expectedValue) => { }); Cypress.Commands.add('openActionsDescriptor', () => { - cy.get('.descriptor > .header > .q-btn').click(); + cy.get('.descriptor > .header > :nth-child(3) > .q-btn__content > .q-icon').click(); });