huridocs/uwazi

View on GitHub
e2e/helpers/changeLanguage.ts

Summary

Maintainability
A
0 mins
Test Coverage
import disableTransitions from './disableTransitions';

const changeLanguage = async (language: string) => {
  await expect(page).toClick('.menuNav-language > .dropdown');
  await expect(page).toClick('.dropdown-menu > li > a', { text: language });
  await page.waitForNavigation();
  await disableTransitions();
};

export { changeLanguage };