From b062474f91f164303151bfc40e5c1992336c612c Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 13 May 2024 17:20:50 +0200 Subject: [PATCH] fix: refs #6891 fix invoiceInDueDay test --- test/cypress/integration/invoiceIn/invoiceInDueDay.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInDueDay.spec.js b/test/cypress/integration/invoiceIn/invoiceInDueDay.spec.js index f39c80809..124b60c34 100644 --- a/test/cypress/integration/invoiceIn/invoiceInDueDay.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInDueDay.spec.js @@ -1,6 +1,6 @@ /// describe('InvoiceInDueDay', () => { - const inputs = 'label input'; + const amountInput = 'tbody > tr:nth-child(1) td:nth-child(4)'; const addBtn = '.q-page-sticky > div > .q-btn > .q-btn__content'; beforeEach(() => { @@ -9,7 +9,7 @@ describe('InvoiceInDueDay', () => { }); it('should update the amount', () => { - cy.get(inputs).eq(3).type(23); + cy.get(amountInput).type('{selectall}{backspace}23'); cy.saveCard(); cy.get('.q-notification__message').should('have.text', 'Data saved'); });