From f51e8b2e4d4df130904ee0bb591670b2977da343 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 6 Feb 2025 15:47:49 +0100 Subject: [PATCH] fix: refs #8372 e2e tests --- src/pages/InvoiceIn/Card/InvoiceInBasicData.vue | 4 ++-- test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js | 4 ++-- .../integration/wagon/wagonType/wagonTypeCreate.spec.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue index a3beabdb6..3b9967fed 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInBasicData.vue @@ -52,7 +52,7 @@ function deleteFile(dmsFk) { invoiceInRef.value.formData.dmsFk = null; invoiceInRef.value.formData.dms = undefined; invoiceInRef.value.hasChanges = true; - invoiceInRef.value.save(); + invoiceInRef.value.save({ prevent: false }); }); } @@ -281,7 +281,7 @@ function deleteFile(dmsFk) { invoiceInRef.formData.dmsFk = dmsData.id; invoiceInRef.formData.dms = dmsData; invoiceInRef.hasChanges = true; - invoiceInRef.save(); + invoiceInRef.save({ prevent: false }); } " /> diff --git a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js index 2016fca6d..80cc805d9 100644 --- a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js @@ -20,7 +20,7 @@ describe('InvoiceInBasicData', () => { cy.get(formInputs).eq(1).invoke('val').should('eq', '4739'); }); - it('should edit, remove and create the dms data', () => { + it.only('should edit, remove and create the dms data', () => { const firtsInput = 'Ticket:65'; const secondInput = "I don't know what posting here!"; @@ -46,7 +46,7 @@ describe('InvoiceInBasicData', () => { 'test/cypress/fixtures/image.jpg', { force: true, - } + }, ); cy.get('[data-cy="FormModelPopup_save"]').click(); cy.checkNotification('Data saved'); diff --git a/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js b/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js index 343c1c127..2cd43984a 100644 --- a/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js +++ b/test/cypress/integration/wagon/wagonType/wagonTypeCreate.spec.js @@ -9,7 +9,7 @@ describe('WagonTypeCreate', () => { it('should create a new wagon type and then delete it', () => { cy.get('.q-page-sticky > div > .q-btn').click(); cy.get('input').first().type('Example for testing'); - cy.get('button[type="submit"]').click(); + cy.get('[data-cy="FormModelPopup_save"]').click(); cy.get('[title="Remove"] > .q-btn__content > .q-icon').first().click(); }); });