From 65d21c9fe5f6000c9084e449f1a2280e588a4cda Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 24 Mar 2025 16:15:17 +0100 Subject: [PATCH] test: refs #8388 update invoice creation test to include spinner wait and company field validation --- .../integration/invoiceIn/invoiceInList.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cypress/integration/invoiceIn/invoiceInList.spec.js b/test/cypress/integration/invoiceIn/invoiceInList.spec.js index 44a61609e5f..3338684d66e 100644 --- a/test/cypress/integration/invoiceIn/invoiceInList.spec.js +++ b/test/cypress/integration/invoiceIn/invoiceInList.spec.js @@ -36,17 +36,17 @@ describe('InvoiceInList', () => { cy.get(summaryHeaders).eq(4).contains('Vat'); }); - it('should create a new Invoice', () => { + it.only('should create a new Invoice', () => { cy.dataCy('vnTableCreateBtn').click(); cy.fillInForm({ ...mock }, { attr: 'data-cy' }); cy.dataCy('FormModelPopup_save').click(); cy.intercept('GET', /\/api\/InvoiceIns\/\d+\/getTotals$/).as('invoice'); - cy.wait('@invoice').then(() => + cy.wait('@invoice').then(() => { cy.validateDescriptor({ title: mockInvoiceRef, listBox: { 0: '11/16/2001', 3: 'The farmer' }, - }), - ); - cy.get('[data-cy="vnLvCompany"]').should('contain.text', 'ORN'); + }); + cy.dataCy('invoiceInBasicDataCompanyFk').should('have.value', 'ORN'); + }); }); });