From d714788923600edb3a4ec412e9b2b4c40f75c1ac Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 2 Jul 2024 08:29:55 +0200 Subject: [PATCH 1/3] test: fix intermitent e2e --- test/cypress/integration/invoiceIn/invoiceInList.spec.js | 3 +-- test/cypress/integration/parking/parkingList.spec.js | 2 +- test/cypress/support/commands.js | 4 ---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js index 5e2a5aa4c..b2fa10d52 100644 --- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js @@ -5,12 +5,11 @@ describe('InvoiceInList', () => { ':nth-child(1) > :nth-child(1) > .justify-between > .flex > .q-chip > .q-chip__content'; const firstDetailBtn = '.q-card:nth-child(1) .q-btn:nth-child(2)'; const summaryHeaders = '.summaryBody .header-link'; - const screen = '.q-page-container > .q-drawer-container > .fullscreen'; beforeEach(() => { + cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/invoice-in/list`); - cy.get(screen).click(); }); it('should redirect on clicking a invoice', () => { diff --git a/test/cypress/integration/parking/parkingList.spec.js b/test/cypress/integration/parking/parkingList.spec.js index 3ac46f8cd..b78a660d1 100644 --- a/test/cypress/integration/parking/parkingList.spec.js +++ b/test/cypress/integration/parking/parkingList.spec.js @@ -8,9 +8,9 @@ describe('ParkingList', () => { const summaryHeader = '.summaryBody .header'; beforeEach(() => { + cy.viewport(1920, 1080); cy.login('developer'); cy.visit(`/#/parking/list`); - cy.closeSideMenu(); }); it('should redirect on clicking a parking', () => { diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 055cb8021..240a97908 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -221,10 +221,6 @@ Cypress.Commands.add('openLeftMenu', (element) => { if (element) cy.waitForElement(element); cy.get('.q-toolbar > .q-btn--round.q-btn--dense > .q-btn__content > .q-icon').click(); }); -Cypress.Commands.add('closeSideMenu', (element) => { - if (element) cy.waitForElement(element); - cy.get('.fullscreen.q-drawer__backdrop:not(.hidden)').click(); -}); Cypress.Commands.add('clearSearchbar', (element) => { if (element) cy.waitForElement(element); From 2961c813a514cabe54acac3656ae9d73d10a23a0 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 2 Jul 2024 12:41:25 +0200 Subject: [PATCH 3/3] build: increase version 2430 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4668d2d56..71d80d401 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salix-front", - "version": "24.28.1", + "version": "24.30.1", "description": "Salix frontend", "productName": "Salix", "author": "Verdnatura",