From d23bc5f67d2924c8b59ccab1137eaeba02f40f28 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 10 Mar 2025 13:38:49 +0100 Subject: [PATCH] fix(ui): refs #8581 add data-cy attributes for better test targeting --- src/components/ui/VnMoreOptions.vue | 2 +- test/cypress/integration/Order/orderCatalog.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ui/VnMoreOptions.vue b/src/components/ui/VnMoreOptions.vue index 475000ef9..984e2b64f 100644 --- a/src/components/ui/VnMoreOptions.vue +++ b/src/components/ui/VnMoreOptions.vue @@ -11,7 +11,7 @@ {{ $t('components.cardDescriptor.moreOptions') }} - + diff --git a/test/cypress/integration/Order/orderCatalog.spec.js b/test/cypress/integration/Order/orderCatalog.spec.js index a106d0e8a..d087f3058 100644 --- a/test/cypress/integration/Order/orderCatalog.spec.js +++ b/test/cypress/integration/Order/orderCatalog.spec.js @@ -55,9 +55,9 @@ describe('OrderCatalog', () => { it('removes a secondary tag', () => { cy.get(':nth-child(1) > [data-cy="catalogFilterCategory"]').click(); cy.selectOption('[data-cy="catalogFilterType"]', 'Anthurium'); - cy.dataCy('vnFilterPanelChip').should('exist'); + cy.dataCy('vnFilterPanelChip_typeFk').should('exist'); cy.get('[data-cy="catalogFilterCustomTag"] > .q-chip__icon--remove').click(); - cy.dataCy('vnFilterPanelChip').should('not.exist'); + cy.dataCy('vnFilterPanelChip_typeFk').should('not.exist'); }); it('Removes category tag', () => {