mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 03:14:58 -04:00
Merge pull request #3324 from alphagov/change-forgot-to-forgotten
Change forgot to forgotten
This commit is contained in:
@@ -50,7 +50,7 @@ def sign_in():
|
||||
flash(Markup(
|
||||
(
|
||||
"The email address or password you entered is incorrect."
|
||||
" <a href={password_reset}>Forgot your password</a>?"
|
||||
" <a href={password_reset}>Forgotten your password?</a>"
|
||||
).format(password_reset=url_for('.forgot_password'))
|
||||
))
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Create a new password
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-large">Forgot your password?</h1>
|
||||
<h1 class="heading-large">Forgotten your password?</h1>
|
||||
|
||||
<p>We’ll send you an email to create a new password.</p>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{% call form_wrapper(autocomplete=True) %}
|
||||
{{ textbox(form.email_address, autocomplete='email') }}
|
||||
{{ textbox(form.password, autocomplete='current-password') }}
|
||||
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgot your password?") }}
|
||||
{{ page_footer("Continue", secondary_link=url_for('.forgot_password'), secondary_link_text="Forgotten your password?") }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@ def test_render_sign_in_template_for_new_user(
|
||||
assert page.select_one('#password')['autocomplete'] == 'current-password'
|
||||
assert page.select('main a')[0].text == 'create one now'
|
||||
assert page.select('main a')[0]['href'] == url_for('main.register')
|
||||
assert page.select('main a')[1].text == 'Forgot your password?'
|
||||
assert page.select('main a')[1].text == 'Forgotten your password?'
|
||||
assert page.select('main a')[1]['href'] == url_for('main.forgot_password')
|
||||
assert 'Sign in again' not in normalize_spaces(page.text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user