diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 8f20ab899..aab1c80c7 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'); }); }