Tests adjustments

This commit is contained in:
William Buezas 2024-12-09 15:18:45 -03:00
parent dedb8a73a5
commit d913eba277
5 changed files with 21 additions and 2 deletions

View File

@ -15,6 +15,7 @@ describe('Photo Uploader Component', () => {
it('should allow selecting a photo collection', () => { it('should allow selecting a photo collection', () => {
// Simular la selección de una colección de fotos // Simular la selección de una colección de fotos
cy.wait(500);
cy.selectOption('[data-testid="photoCollectionSelect"]', 'Enlace'); cy.selectOption('[data-testid="photoCollectionSelect"]', 'Enlace');
cy.getValue('[data-testid="photoCollectionSelect"]').should( cy.getValue('[data-testid="photoCollectionSelect"]').should(
'equal', 'equal',

View File

@ -1,5 +1,5 @@
const checkoutNextStep = () => { const checkoutNextStep = () => {
cy.dataCy('checkoutStepperRightButton').should('be.visible').click(); cy.dataCy('checkoutStepperRightButton').last().should('be.visible').click();
}; };
Cypress.Commands.add('createOrderReceive', () => { Cypress.Commands.add('createOrderReceive', () => {

View File

@ -11,6 +11,7 @@ describe('Changes user nickname', () => {
it('changes site lang when changing user lang', () => { it('changes site lang when changing user lang', () => {
cy.dataCy('configViewLang').should('exist'); cy.dataCy('configViewLang').should('exist');
cy.wait(500);
cy.selectOption('[data-testid="configViewLang"]', 'Español'); cy.selectOption('[data-testid="configViewLang"]', 'Español');
cy.dataCy('headerTitle').should('contain', 'Configuración'); cy.dataCy('headerTitle').should('contain', 'Configuración');
cy.selectOption('[data-testid="configViewLang"]', 'English'); cy.selectOption('[data-testid="configViewLang"]', 'English');

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,7 @@ Cypress.Commands.add('setSessionStorage', (key, value) => {
}); });
Cypress.Commands.add('resetDB', () => { Cypress.Commands.add('resetDB', () => {
cy.exec('npm run resetDatabase'); cy.exec('pnpm run db');
}); });
Cypress.Commands.add('setConfirmDialog', () => { Cypress.Commands.add('setConfirmDialog', () => {