diff --git a/src/test/cypress/integration/admin/PhotosView.spec.js b/src/test/cypress/integration/admin/PhotosView.spec.js index f5253b4e..3df15fb6 100644 --- a/src/test/cypress/integration/admin/PhotosView.spec.js +++ b/src/test/cypress/integration/admin/PhotosView.spec.js @@ -15,7 +15,6 @@ describe('Photo Uploader Component', () => { it('should allow selecting a photo collection', () => { // Simular la selección de una colección de fotos - cy.wait(500); cy.selectOption('[data-testid="photoCollectionSelect"]', 'Enlace'); cy.getValue('[data-testid="photoCollectionSelect"]').should( 'equal', diff --git a/src/test/cypress/integration/config/AccountConfig.spec.js b/src/test/cypress/integration/config/AccountConfig.spec.js index c2309589..97cd10dc 100644 --- a/src/test/cypress/integration/config/AccountConfig.spec.js +++ b/src/test/cypress/integration/config/AccountConfig.spec.js @@ -11,7 +11,6 @@ describe('Changes user nickname', () => { it('changes site lang when changing user lang', () => { cy.dataCy('configViewLang').should('exist'); - cy.wait(500); cy.selectOption('[data-testid="configViewLang"]', 'Español'); cy.dataCy('headerTitle').should('contain', 'Configuración'); cy.selectOption('[data-testid="configViewLang"]', 'English'); diff --git a/src/test/cypress/support/commands.js b/src/test/cypress/support/commands.js index b5befaf4..2f182661 100644 --- a/src/test/cypress/support/commands.js +++ b/src/test/cypress/support/commands.js @@ -36,6 +36,7 @@ requireCommands.keys().forEach(requireCommands); // Common commands Cypress.Commands.add('selectOption', (selector, option) => { cy.waitForElement(selector); + cy.wait(400); cy.get(selector).click(); cy.get('.q-menu .q-item').contains(option).click(); });