From ab5347d302ecf7f18758779d455658018bcbb34a Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 5 Jul 2024 14:58:02 +0200 Subject: [PATCH] fix: e2e and min-height vnTable --- src/components/VnTable/VnTable.vue | 4 +++- .../cypress/integration/invoiceIn/invoiceInCorrective.spec.js | 3 ++- .../cypress/integration/invoiceIn/invoiceInDescriptor.spec.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 85c9380fc..709ca16c8 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -305,7 +305,9 @@ defineExpose({ class="q-pt-sm q-px-sm ellipsis" :class="`text-${col?.align ?? 'left'}`" :style=" - $props.columnSearch ? { 'min-height': 72 + 'px' } : '' + $props.columnSearch && col.columnFilter == false + ? { 'min-height': 72 + 'px' } + : '' " > {{ col?.label }} diff --git a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js index 7863d6bfa..efe5550c3 100644 --- a/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInCorrective.spec.js @@ -8,7 +8,8 @@ describe('InvoiceInCorrective', () => { it('should create a correcting invoice', () => { cy.viewport(1280, 720); cy.login('developer'); - cy.visit(`/#/invoice-in/1/summary?limit=10`); + cy.visit(`/#/invoice-in/1/summary`); + cy.waitForElement('.q-page'); cy.openActionsDescriptor(); diff --git a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js index a2e9998bb..4b5b993df 100644 --- a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js @@ -7,6 +7,7 @@ describe('InvoiceInDescriptor', () => { cy.viewport(1280, 720); cy.login('developer'); cy.visit('/#/invoice-in/1/summary'); + cy.waitForElement('.q-page'); cy.openActionsDescriptor(); cy.get(firstDescritorOpt).click();