Tests adjustments
This commit is contained in:
parent
dedb8a73a5
commit
d913eba277
|
@ -15,6 +15,7 @@ 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',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const checkoutNextStep = () => {
|
||||
cy.dataCy('checkoutStepperRightButton').should('be.visible').click();
|
||||
cy.dataCy('checkoutStepperRightButton').last().should('be.visible').click();
|
||||
};
|
||||
|
||||
Cypress.Commands.add('createOrderReceive', () => {
|
||||
|
|
|
@ -11,6 +11,7 @@ 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');
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -80,7 +80,7 @@ Cypress.Commands.add('setSessionStorage', (key, value) => {
|
|||
});
|
||||
|
||||
Cypress.Commands.add('resetDB', () => {
|
||||
cy.exec('npm run resetDatabase');
|
||||
cy.exec('pnpm run db');
|
||||
});
|
||||
|
||||
Cypress.Commands.add('setConfirmDialog', () => {
|
||||
|
|
Loading…
Reference in New Issue