diff options
author | Anike Arni <anikarni@gmail.com> | 2017-03-28 15:22:12 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 15:22:12 -0300 |
commit | 444b39959ad1c34fb9eb91def835d9e695710374 (patch) | |
tree | 609890b3760c2855d682da5e8b04edac52e97d81 /web-ui/test/integration/translations.spec.js | |
parent | a9462a5d761aab4d4bcd89412fb265155c981972 (diff) | |
parent | c7d135c20c70b6bd5936177db90a7b8ce2d278c0 (diff) |
Merge pull request #1028 from pixelated/forgot-password-page
Adds admin code form and logic for next step of recovery form
Diffstat (limited to 'web-ui/test/integration/translations.spec.js')
-rw-r--r-- | web-ui/test/integration/translations.spec.js | 9 |
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()); }); }); |