From 0ae10278918f709f8cae69cecad27e2e1d924c00 Mon Sep 17 00:00:00 2001 From: jtubau Date: Mon, 19 May 2025 11:26:11 +0200 Subject: [PATCH] test: refs #8930 combine test cases for linking and unlinking a vehicle from the invoice --- test/cypress/integration/invoiceIn/invoiceInVehicle.spec.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInVehicle.spec.js b/test/cypress/integration/invoiceIn/invoiceInVehicle.spec.js index 177d676e8..708994036 100644 --- a/test/cypress/integration/invoiceIn/invoiceInVehicle.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInVehicle.spec.js @@ -15,7 +15,7 @@ describe('InvoiceInVehicle', () => { cy.visit(`/#/invoice-in/1/vehicle`); }); - it('should link vehicle to the invoice', () => { + it('should link and unlink vehicle to the invoice', () => { const data = { Vehicle: { val: '2222-IMK', type: 'select' }, Amount: { val: 125 }, @@ -24,9 +24,6 @@ describe('InvoiceInVehicle', () => { cy.fillInForm(data); cy.dataCy('FormModelPopup_save').click(); cy.checkNotification('Data created'); - }); - - it('should unlink vehicle to the invoice', () => { cy.dataCy(selectors.tableActionUnlink).last().click(); cy.clickConfirm(); cy.checkNotification('Unlinked vehicle');