forked from verdnatura/hedera-web
Move command
This commit is contained in:
parent
9450be744a
commit
62349278ed
|
@ -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);
|
||||
|
|
|
@ -45,3 +45,7 @@ Cypress.Commands.add('getValue', selector => {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add('waitForElement', (element, timeout = 5000) => {
|
||||
cy.get(element, { timeout }).should('be.visible');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue