summaryrefslogtreecommitdiff
path: root/web-ui/test/integration/translations.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/integration/translations.spec.js')
-rw-r--r--web-ui/test/integration/translations.spec.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/web-ui/test/integration/translations.spec.js b/web-ui/test/integration/translations.spec.js
index f8cf6c52..7821ac55 100644
--- a/web-ui/test/integration/translations.spec.js
+++ b/web-ui/test/integration/translations.spec.js
@@ -9,8 +9,15 @@ import testI18n from './i18n';
describe('Translations', () => {
context('Account Recovery Page', () => {
- it('translates all key', () => {
+ it('translates all keys on first step', () => {
+ const app = mount(<App i18n={testI18n} child={<AccountRecoveryPage />} />);
+ expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text());
+ });
+
+ it('translates all keys on second step', () => {
const app = mount(<App i18n={testI18n} child={<AccountRecoveryPage />} />);
+ app.find('form.admin-code-form').simulate('submit');
+
expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text());
});
});