Cypress initial config and tests #90

Merged
jsegarra merged 26 commits from wbuezas/hedera-web-mindshore:feature/CypressInit into 4922-vueMigration 2024-11-12 12:24:41 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 62349278ed - Show all commits

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');
});