From 5c280867e2eb3f95882d95d9e9e315fca309fbd6 Mon Sep 17 00:00:00 2001 From: jtubau Date: Wed, 29 Jan 2025 08:35:37 +0100 Subject: [PATCH 1/6] fix: refs #8418 adjusted route for button click --- test/cypress/integration/entry/myEntry.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cypress/integration/entry/myEntry.spec.js b/test/cypress/integration/entry/myEntry.spec.js index c25476419..f06fdbbcc 100644 --- a/test/cypress/integration/entry/myEntry.spec.js +++ b/test/cypress/integration/entry/myEntry.spec.js @@ -9,11 +9,11 @@ describe('EntryMy when is supplier', () => { }); }); // https://redmine.verdnatura.es/issues/8418 - it.skip('should open buyLabel when is supplier', () => { + it('should open buyLabel when is supplier', () => { cy.get( '[to="/null/3"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon' ).click(); - cy.get('.q-card__actions > .q-btn').click(); + cy.get('.q-card__section > .q-infinite-scroll > .q-table__container > .q-table__top > :nth-child(3) > .q-btn > .q-btn__content > .q-icon').click(); cy.window().its('open').should('be.called'); }); }); -- 2.40.1 From 10c9bfe2665fb8828d2748a76599925ba535d92b Mon Sep 17 00:00:00 2001 From: jtubau Date: Wed, 29 Jan 2025 08:49:41 +0100 Subject: [PATCH 2/6] refactor: refs #8418 remove commented issue reference from myEntry.spec.js --- test/cypress/integration/entry/myEntry.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cypress/integration/entry/myEntry.spec.js b/test/cypress/integration/entry/myEntry.spec.js index f06fdbbcc..bf5adcae9 100644 --- a/test/cypress/integration/entry/myEntry.spec.js +++ b/test/cypress/integration/entry/myEntry.spec.js @@ -8,7 +8,7 @@ describe('EntryMy when is supplier', () => { }, }); }); - // https://redmine.verdnatura.es/issues/8418 + it('should open buyLabel when is supplier', () => { cy.get( '[to="/null/3"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon' -- 2.40.1 From 74a6b20590dd1340628e2ab79582d6ae1263a5e7 Mon Sep 17 00:00:00 2001 From: jtubau Date: Wed, 29 Jan 2025 11:48:36 +0100 Subject: [PATCH 3/6] feat: refs #8418 add data-cy attribute for print labels button in EntryBuysTableDialog --- src/pages/Entry/EntryBuysTableDialog.vue | 1 + test/cypress/integration/entry/myEntry.spec.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index a2d8c9117..8ac00f999 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -134,6 +134,7 @@ function downloadCSV(rows) { @click=" openReport(`Entries/${entityId}/labelSupplier`) " + data-cy="entryBuysTableDialog_printLabelsBtn" /> -- 2.40.1