0
1
Fork 0

Small changes

This commit is contained in:
William Buezas 2024-12-09 15:30:51 -03:00
parent d913eba277
commit 99c1386627
3 changed files with 1 additions and 2 deletions

View File

@ -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',

View File

@ -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');

View File

@ -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();
});