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.js28
1 files changed, 15 insertions, 13 deletions
diff --git a/web-ui/test/integration/translations.spec.js b/web-ui/test/integration/translations.spec.js
index 1173695d..fe17838b 100644
--- a/web-ui/test/integration/translations.spec.js
+++ b/web-ui/test/integration/translations.spec.js
@@ -1,21 +1,23 @@
import { mount } from 'enzyme';
import expect from 'expect';
import React from 'react';
-import App from 'src/backup_account/app';
-import testI18n from './i18n'
+import App from 'src/common/app';
+import BackupAccountPage from 'src/backup_account/page';
+import LoginPage from 'src/login/page';
+import testI18n from './i18n';
-describe('App', () => {
- let app;
-
- beforeEach(() => {
- app = mount(<App i18n={testI18n} />);
- });
-
- it('renders translated header logout text', () => {
- expect(app.find('header').text()).toContain('Logout');
+describe('Translations', () => {
+ context('Backup Account Page', () => {
+ it('translates all key', () => {
+ const app = mount(<App i18n={testI18n} child={<BackupAccountPage />} />);
+ expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text());
+ });
});
- it('renders translated footer text', () => {
- expect(app.find('footer').text()).toContain('Product in development. Feedback and issues to team@pixelated-project.org');
+ context('Login Page', () => {
+ it('translates all key', () => {
+ const app = mount(<App i18n={testI18n} child={<LoginPage />} />);
+ expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text());
+ });
});
});