From ba7497f055f9248b8bbf24032b6965abd3c4e8b0 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 9 Sep 2024 08:47:44 +0200 Subject: [PATCH] fix: refs #7889 fixed shortcut test --- .../integration/vnComponent/VnShortcut.spec.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/cypress/integration/vnComponent/VnShortcut.spec.js b/test/cypress/integration/vnComponent/VnShortcut.spec.js index 3ab95340e..59dd397c3 100644 --- a/test/cypress/integration/vnComponent/VnShortcut.spec.js +++ b/test/cypress/integration/vnComponent/VnShortcut.spec.js @@ -9,23 +9,23 @@ describe('VnShortcuts', () => { monitor: 'm', order: 'p', supplier: 'p', - entry: '€', + entry: 'e', zone: 'z', account: 'u', }; - beforeEach(() => { - cy.login('developer'); - cy.visit('/'); - }); it('should visit each module', () => { + cy.login('developer'); + cy.visit('/'); Object.keys(modules).forEach((module) => { const shortcut = modules[module]; - cy.get('body').type(`{ctrl}{alt}${shortcut}`); + cy.get('body').click(); + cy.get('body').type(`{ctrl+alt+${shortcut}}`); - cy.url().should('include', module); - cy.get('body').should('be.visible'); + if (shortcut != 'u' && shortcut != 'o') { + cy.get('.q-table__middle').should('be.visible'); + } cy.visit('/'); });