From 2deeb51f5e2908bcc8c4f6e8c2939b89e4b70dfb Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 19 Feb 2025 14:43:48 +0100 Subject: [PATCH] test: refs #6695 fix e2e --- src/components/NavBar.vue | 10 +++++++++- .../cypress/integration/vnComponent/VnLocation.spec.js | 2 +- test/cypress/support/commands.js | 4 +--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index e4b19988ae4..3e92c93a9d0 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -85,7 +85,15 @@ const refresh = () => window.location.reload(); - + { const locationOptions = '[role="listbox"] > div.q-virtual-scroll__content > .q-item'; diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index b3586baf715..ef1726c94f1 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -323,9 +323,7 @@ Cypress.Commands.add('clickButtonDescriptor', (id) => { }); Cypress.Commands.add('openUserPanel', () => { - cy.get( - '.column > .q-avatar > .q-avatar__content > .q-img > .q-img__container > .q-img__image', - ).click(); + cy.dataCy('userPanel_btn').click(); }); Cypress.Commands.add('checkNotification', (text) => {