diff options
author | Tulio Casagrande <tuliocasagrande@gmail.com> | 2017-04-05 11:34:48 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 11:34:48 -0300 |
commit | 658bc283585de7692af9b4d877962b2d0f96ebe0 (patch) | |
tree | 676b981ee3e4e4643f98816731c4e0f6fd5b9293 /web-ui/test/integration/translations.spec.js | |
parent | 770165d37909488519a76222a949d2353a3745f5 (diff) | |
parent | 8198fa48d2e42d89457940590ec4b308ee541090 (diff) |
Merge pull request #1044 from pixelated/backup_account_during_recovery
Backup account at end of account recovery
Diffstat (limited to 'web-ui/test/integration/translations.spec.js')
-rw-r--r-- | web-ui/test/integration/translations.spec.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/web-ui/test/integration/translations.spec.js b/web-ui/test/integration/translations.spec.js index 6faa7483..9b5256ee 100644 --- a/web-ui/test/integration/translations.spec.js +++ b/web-ui/test/integration/translations.spec.js @@ -9,25 +9,36 @@ import testI18n from './i18n'; describe('Translations', () => { context('Account Recovery Page', () => { - it('translates all keys on first step', () => { + it('translates all keys on admin recovery code 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', () => { + it('translates all keys on user recovery code step', () => { const app = mount(<App i18n={testI18n} child={<AccountRecoveryPage />} />); app.find('form.admin-code').simulate('submit'); expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text()); }); - it('translates all keys on third step', () => { + it('translates all keys on new password step', () => { const app = mount(<App i18n={testI18n} child={<AccountRecoveryPage />} />); app.find('form.admin-code').simulate('submit'); app.find('form.user-code').simulate('submit'); expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text()); }); + + it('translates all keys on backup account step', () => { + const app = mount(<App i18n={testI18n} child={<AccountRecoveryPage />} />); + app.find('form.admin-code').simulate('submit'); + app.find('form.user-code').simulate('submit'); + app.find('input[name="new-password"]').simulate('change', {target: {value: '11'}}); + app.find('input[name="confirm-password"]').simulate('change', {target: {value: '11'}}); + app.find('form.new-password').simulate('submit'); + + expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text()); + }); }); context('Backup Account Page', () => { |