accounts: add phone-change view title (#82733) #157

Merged
pmarillonnet merged 1 commits from wip/82733-change-phone-title into main 2023-10-31 16:45:24 +01:00
2 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,7 @@ email_change = decorators.setting_enabled('A2_PROFILE_CAN_CHANGE_EMAIL')(
class PhoneChangeView(HomeURLMixin, IdentifierChangeMixin, cbv.TemplateNamesMixin, FormView):
template_name = 'authentic2/change_phone.html'
title = _('Phone Change')
reauthn_message = _('You must re-authenticate to change your phone number.')
action = 'phone-change'

View File

@ -59,6 +59,7 @@ def test_change_phone(app, nomail_user, user_ou1, phone_activated_authn, setting
password=nomail_user.username,
)
assert 'Your current phone number is +33122446688.' in resp.text
assert 'Phone Change' in resp.pyquery('title')[0].text
resp.form.set('phone_1', '122446666')
resp.form.set('password', nomail_user.username)