forked from verdnatura/hedera-web
Small changes
This commit is contained in:
parent
d913eba277
commit
99c1386627
|
@ -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',
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue