From c9679ac835e99b610c4c925b84e152cae7082e65 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 3 Feb 2025 10:42:39 +0100 Subject: [PATCH] test: refs #6695 fix selectOption command --- test/cypress/support/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 8f20ab8990..aab1c80c70 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -95,15 +95,15 @@ Cypress.Commands.add('selectOption', (selector, option, timeout = 10000) => { let hasUrl; cy.get('@dataUrl').then((url) => { hasUrl = url; - cy.intercept('GET', url).as('dataRequest'); // Ajusta el método y la URL según sea necesario + cy.intercept('GET', url).as('dataRequest'); }); cy.get(selector).clear().type(option); if (hasUrl) { cy.wait('@dataRequest').then(() => { cy.get('.q-menu').should('be.visible').and('exist'); - cy.get('.q-menu').should('not.be.visible'); // Esperar que el menú desaparezca - cy.get('.q-menu').should('be.visible').and('exist'); // Esperar que reaparezca + cy.get('.q-menu').should('not.be.visible'); + cy.get('.q-menu').should('be.visible').and('exist'); }); }