0
1
Fork 0

Move command

This commit is contained in:
William Buezas 2024-10-16 20:35:40 -03:00
parent 9450be744a
commit 62349278ed
2 changed files with 4 additions and 4 deletions

View File

@ -51,10 +51,6 @@ Cypress.Commands.add('loginFlow', (user, visitLogin = true) => {
cy.url().should('contain', '/#/cms/home');
});
Cypress.Commands.add('waitForElement', (element, timeout = 5000) => {
cy.get(element, { timeout }).should('be.visible');
});
Cypress.Commands.add('changeLanguage', language => {
const languagesOrder = ['en', 'es', 'ca', 'fr', 'pt'];
const index = languagesOrder.indexOf(language);

View File

@ -45,3 +45,7 @@ Cypress.Commands.add('getValue', selector => {
}
});
});
Cypress.Commands.add('waitForElement', (element, timeout = 5000) => {
cy.get(element, { timeout }).should('be.visible');
});