summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-03-27 13:52:01 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-03-27 13:52:01 -0300
commitb901ffde59378b447454fab054fa30228b43a56b (patch)
tree2fdf979386d591a2dd62928057f5387541f47ba7 /web-ui
parent0c4c805f03d61760fd1685d22afbc545e67e96ed (diff)
[#932] Adds integration test for translations in acount recovery page
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/test/integration/translations.spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web-ui/test/integration/translations.spec.js b/web-ui/test/integration/translations.spec.js
index fe17838b..f8cf6c52 100644
--- a/web-ui/test/integration/translations.spec.js
+++ b/web-ui/test/integration/translations.spec.js
@@ -2,11 +2,19 @@ import { mount } from 'enzyme';
import expect from 'expect';
import React from 'react';
import App from 'src/common/app';
+import AccountRecoveryPage from 'src/account_recovery/page';
import BackupAccountPage from 'src/backup_account/page';
import LoginPage from 'src/login/page';
import testI18n from './i18n';
describe('Translations', () => {
+ context('Account Recovery Page', () => {
+ it('translates all key', () => {
+ const app = mount(<App i18n={testI18n} child={<AccountRecoveryPage />} />);
+ expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text());
+ });
+ });
+
context('Backup Account Page', () => {
it('translates all key', () => {
const app = mount(<App i18n={testI18n} child={<BackupAccountPage />} />);