diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-03-28 15:48:14 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-03-28 18:06:43 -0300 |
commit | eacd59f75a388c33b73b5eb61a2e22a24685badd (patch) | |
tree | 529657ac03072092b3a7693e8e1f9aa03b5bac48 /web-ui/src | |
parent | 1ec36fb45d48cadd98ec7188414fa6de4d9455ad (diff) |
[#932] Hides inputs on new password form
Diffstat (limited to 'web-ui/src')
-rw-r--r-- | web-ui/src/account_recovery/forms/new_password_form.js | 10 | ||||
-rw-r--r-- | web-ui/src/account_recovery/forms/new_password_form.spec.js | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/web-ui/src/account_recovery/forms/new_password_form.js b/web-ui/src/account_recovery/forms/new_password_form.js index 2d94f474..ccc66326 100644 --- a/web-ui/src/account_recovery/forms/new_password_form.js +++ b/web-ui/src/account_recovery/forms/new_password_form.js @@ -30,8 +30,14 @@ export const NewPasswordForm = ({ t, previous }) => ( alt={t('account-recovery.new-password.image-description')} /> <h1>{t('account-recovery.new-password-form.title')}</h1> - <InputField name='new-password' label={t('account-recovery.new-password-form.input-label1')} /> - <InputField name='confirm-password' label={t('account-recovery.new-password-form.input-label2')} /> + <InputField + type='password' name='new-password' + label={t('account-recovery.new-password-form.input-label1')} + /> + <InputField + type='password' name='confirm-password' + label={t('account-recovery.new-password-form.input-label2')} + /> <SubmitButton buttonText={t('account-recovery.new-password-form.button')} /> <BackLink text={t('account-recovery.back')} diff --git a/web-ui/src/account_recovery/forms/new_password_form.spec.js b/web-ui/src/account_recovery/forms/new_password_form.spec.js index f9e54cc8..5ac96b40 100644 --- a/web-ui/src/account_recovery/forms/new_password_form.spec.js +++ b/web-ui/src/account_recovery/forms/new_password_form.spec.js @@ -20,10 +20,12 @@ describe('NewPasswordForm', () => { }); it('renders input for new password', () => { + expect(newPasswordForm.find('InputField').at(0).props().type).toEqual('password'); expect(newPasswordForm.find('InputField').at(0).props().label).toEqual('account-recovery.new-password-form.input-label1'); }); it('renders input to confirm new password', () => { + expect(newPasswordForm.find('InputField').at(1).props().type).toEqual('password'); expect(newPasswordForm.find('InputField').at(1).props().label).toEqual('account-recovery.new-password-form.input-label2'); }); |