From 227d3a8c88537bab321a99490d5716da9e947875 Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 24 Jan 2025 08:59:12 +0100 Subject: [PATCH 1/3] fix: refs #8352 fix rightPanel vnLog --- test/cypress/integration/vnComponent/VnLog.spec.js | 4 ++-- test/cypress/support/commands.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/cypress/integration/vnComponent/VnLog.spec.js b/test/cypress/integration/vnComponent/VnLog.spec.js index 10917859a..80b9d07df 100644 --- a/test/cypress/integration/vnComponent/VnLog.spec.js +++ b/test/cypress/integration/vnComponent/VnLog.spec.js @@ -10,14 +10,14 @@ describe('VnLog', () => { cy.openRightMenu(); }); - it.skip('should filter by insert actions', () => { + it('should filter by insert actions', () => { cy.checkOption(':nth-child(7) > .q-checkbox'); cy.get('.q-page').click(); cy.validateContent(chips[0], 'Document'); cy.validateContent(chips[1], 'Beginning'); }); - it.skip('should filter by entity', () => { + it('should filter by entity', () => { cy.selectOption('.q-drawer--right .q-item > .q-select', 'Claim'); cy.get('.q-page').click(); cy.validateContent(chips[0], 'Claim'); diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 93f6d0054..dad434ecd 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -71,7 +71,7 @@ Cypress.Commands.add('getValue', (selector) => { return cy .get( selector + - '> .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > input' + '> .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > input', ) .invoke('val'); } @@ -264,7 +264,7 @@ Cypress.Commands.add('openListSummary', (row) => { Cypress.Commands.add('openRightMenu', (element) => { if (element) cy.waitForElement(element); - cy.get('#actions-append').click(); + cy.get('.q-gutter-x-sm > .q-btn > .q-btn__content > .q-icon').click(); }); Cypress.Commands.add('openLeftMenu', (element) => { @@ -330,7 +330,7 @@ Cypress.Commands.add('clickButtonsDescriptor', (id) => { Cypress.Commands.add('openUserPanel', () => { cy.get( - '.column > .q-avatar > .q-avatar__content > .q-img > .q-img__container > .q-img__image' + '.column > .q-avatar > .q-avatar__content > .q-img > .q-img__container > .q-img__image', ).click(); }); @@ -356,7 +356,7 @@ Cypress.Commands.add('checkValueForm', (id, search) => { Cypress.Commands.add('checkValueSelectForm', (id, search) => { cy.get( - `.grid-create > :nth-child(${id}) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > .q-field__input` + `.grid-create > :nth-child(${id}) > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > .q-field__input`, ).should('have.value', search); }); From 4132bb2b468ec29e1242c73b9a3d4f1bd5172bea Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 28 Jan 2025 12:37:03 +0100 Subject: [PATCH 2/3] 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) => { From 39d31ec330316136ea0345dd80e06d53c0aec3e9 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 28 Jan 2025 12:40:50 +0100 Subject: [PATCH 3/3] fix: refs #8352 fix right --- src/components/common/RightMenu.vue | 2 +- test/cypress/support/commands.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/RightMenu.vue b/src/components/common/RightMenu.vue index 9fb2b0070..196815df1 100644 --- a/src/components/common/RightMenu.vue +++ b/src/components/common/RightMenu.vue @@ -26,7 +26,7 @@ onMounted(() => { round dense icon="dock_to_left" - data-cy="toggle-left-drawer" + data-cy="toggle-right-drawer" > {{ t('globals.collapseMenu') }} diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 4b8ca0332..6a436c1eb 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('[data-cy="toggle-left-drawer"]').click(); + cy.get('[data-cy="toggle-right-drawer"]').click(); }); Cypress.Commands.add('openLeftMenu', (element) => {