Fix locale switcher and cover it with e2e

This commit is contained in:
SleepWalker
2019-12-28 13:13:11 +02:00
parent ba49382fb6
commit b2c072e5e1
6 changed files with 83 additions and 4 deletions

View File

@ -62,7 +62,11 @@ class LanguageSwitcher extends React.Component<
const { filteredLangs } = this.state;
return (
<div className={styles.languageSwitcher}>
<div
className={styles.languageSwitcher}
data-testid="language-switcher"
data-e2e-active-locale={selectedLocale}
>
<div className={popupStyles.popup}>
<div className={popupStyles.header}>
<h2 className={popupStyles.headerTitle}>