From c7d135c20c70b6bd5936177db90a7b8ce2d278c0 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 28 Mar 2017 11:43:29 -0300 Subject: [#932] Tests next step of account recovery is translated --- web-ui/test/integration/translations.spec.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'web-ui/test') 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(} />); + expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text()); + }); + + it('translates all keys on second step', () => { const app = mount(} />); + app.find('form.admin-code-form').simulate('submit'); + expect(app.text()).toNotContain('untranslated', 'Unstranslated message found in the text: ' + app.text()); }); }); -- cgit v1.2.3