From a62d973c82b332ed28db8c0ca95815bd0148f8e5 Mon Sep 17 00:00:00 2001 From: pablone Date: Fri, 16 May 2025 12:49:59 +0200 Subject: [PATCH] fix: refs #8684 update button title handling and improve test case for item request --- src/components/VnTable/VnTable.vue | 6 +++++- test/cypress/integration/item/itemRequest.spec.js | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 5d3513dc3..37a1e89ab 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -922,7 +922,11 @@ const handleHeaderSelection = (evt, data) => { v-for="(btn, index) of col.actions" v-show="btn.show ? btn.show(row) : true" :key="index" - :title="btn.title == 'function' ? btn.title(row) : btn.title" + :title=" + typeof btn.title === 'function' + ? btn.title(row) + : btn.title + " :icon="btn.icon" class="q-pa-xs" flat diff --git a/test/cypress/integration/item/itemRequest.spec.js b/test/cypress/integration/item/itemRequest.spec.js index cf54bc2a8..7c97a2845 100644 --- a/test/cypress/integration/item/itemRequest.spec.js +++ b/test/cypress/integration/item/itemRequest.spec.js @@ -2,6 +2,7 @@ describe('Item Request', () => { const rowIndex = 0; const itemFkField = `td[data-row-index="${rowIndex}"][data-col-field="itemFk"]`; const saleQuantityField = `td[data-row-index="${rowIndex}"][data-col-field="saleQuantity"]`; + const ticketInputFilter = '[data-cy="Ticket id_input"]'; before(() => { cy.login('buyer'); @@ -10,6 +11,7 @@ describe('Item Request', () => { it('should fill the id and quantity then check the concept was updated', () => { cy.waitForElement('tbody'); + cy.get(ticketInputFilter).should('exist').type('38{enter}'); cy.get(itemFkField).should('exist').click(); cy.get(`${itemFkField} input`).should('exist').type('4'); cy.get(saleQuantityField).should('exist').click();