summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-03-28 11:43:29 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-03-28 11:44:41 -0300
commitc7d135c20c70b6bd5936177db90a7b8ce2d278c0 (patch)
tree609890b3760c2855d682da5e8b04edac52e97d81 /web-ui/test
parentd39f2b2907aa49f5fa383d2246875220a77c818c (diff)
[#932] Tests next step of account recovery is translated
Diffstat (limited to 'web-ui/test')
-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());
});
});