diff --git a/src/components/common/RightMenu.vue b/src/components/common/RightMenu.vue index 1eded089e..196815df1 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-right-drawer" > {{ t('globals.collapseMenu') }} 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..6a436c1eb 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('[data-cy="toggle-right-drawer"]').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); });