From 675b764c8256154325259e480e910023575a3be8 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 11 Apr 2024 09:05:02 +0200 Subject: [PATCH] refactor: fixed invoiceInVat tests --- test/cypress/integration/invoiceIn/invoiceInVat.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInVat.spec.js b/test/cypress/integration/invoiceIn/invoiceInVat.spec.js index 811374b98..2f045f32c 100644 --- a/test/cypress/integration/invoiceIn/invoiceInVat.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInVat.spec.js @@ -37,6 +37,7 @@ describe('InvoiceInVat', () => { it('should throw an error if there are fields undefined', () => { cy.get(inputBtns).eq(0).click(); + cy.get(':nth-child(1) > .q-td.q-table--col-auto-width > .q-field > .q-field__inner > .q-field__control > :nth-child(2) > .default-icon').click(); cy.get(dialogBtns).eq(2).click(); cy.get('.q-notification__message').should('have.text', "The code can't be empty"); }); @@ -44,7 +45,7 @@ describe('InvoiceInVat', () => { it('should correctly handle expense addition', () => { cy.get(inputBtns).eq(0).click(); - cy.get(dialogInputs).eq(0).click(); + cy.get(':nth-child(1) > .q-td.q-table--col-auto-width > .q-field > .q-field__inner > .q-field__control > :nth-child(2) > .default-icon').click(); cy.get(dialogInputs).eq(0).type(randomInt); cy.get(dialogInputs).eq(1).click(); cy.get(dialogInputs).eq(1).type('This is a dummy expense');