From efd364e3b2517cf9f7f4e7bd3aca60fad5b54382 Mon Sep 17 00:00:00 2001
From: jorgep <jorgep@verdnatura.es>
Date: Wed, 5 Mar 2025 12:34:45 +0100
Subject: [PATCH] test: refs #8581 update invoiceInDescriptor test to ensure
 correct navigation to invoiceIn list

---
 test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js
index e24aa2bcc..cd8839f9d 100644
--- a/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js
+++ b/test/cypress/integration/invoiceIn/invoiceInDescriptor.spec.js
@@ -78,8 +78,8 @@ describe('InvoiceInDescriptor', () => {
 
         it('should navigate to the invoiceIn list', () => {
             cy.intercept('GET', /api\/InvoiceIns\/1/).as('getCard');
-            cy.clicDescriptorAction(3);
             cy.wait('@getCard');
+            cy.clicDescriptorAction(3);
             cy.url().should('to.match', /invoice-in\/list\?table=\{.*supplierFk.+\}/);
         });
     });