From 4132bb2b468ec29e1242c73b9a3d4f1bd5172bea Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 28 Jan 2025 12:37:03 +0100 Subject: [PATCH] fix: refs #8352 fix datacy --- src/components/common/RightMenu.vue | 1 + test/cypress/support/commands.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/common/RightMenu.vue b/src/components/common/RightMenu.vue index 1eded089e..9fb2b0070 100644 --- a/src/components/common/RightMenu.vue +++ b/src/components/common/RightMenu.vue @@ -26,6 +26,7 @@ onMounted(() => { round dense icon="dock_to_left" + data-cy="toggle-left-drawer" > {{ t('globals.collapseMenu') }} diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index dad434ecd..4b8ca0332 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -264,7 +264,7 @@ Cypress.Commands.add('openListSummary', (row) => { Cypress.Commands.add('openRightMenu', (element) => { if (element) cy.waitForElement(element); - cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content > .q-icon').click(); + cy.get('[data-cy="toggle-left-drawer"]').click(); }); Cypress.Commands.add('openLeftMenu', (element) => {