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);