mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Merge pull request #927 from alphagov/quis-patch-1
Reword resend email page
This commit is contained in:
@@ -21,7 +21,7 @@ def test_should_render_email_verification_resend_show_email_address_and_resend_v
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
|
||||
assert page.h1.string == 'Check your email'
|
||||
expected = "In order to verify your email address we've sent a new confirmation link to {}".format(api_user_active.email_address) # noqa
|
||||
expected = "A new confirmation email has been sent to {}".format(api_user_active.email_address)
|
||||
|
||||
message = page.find_all('p')[1].text
|
||||
assert message == expected
|
||||
|
||||
@@ -22,7 +22,7 @@ def test_should_redirect_to_password_reset_sent_for_valid_email(
|
||||
url_for('.forgot_password'),
|
||||
data={'email_address': api_user_active.email_address})
|
||||
assert response.status_code == 200
|
||||
assert 'We’ve sent you an email with a link to reset your password.' \
|
||||
assert 'Click the link in the email to reset your password.' \
|
||||
in response.get_data(as_text=True)
|
||||
app.user_api_client.send_reset_password_url.assert_called_once_with(api_user_active.email_address)
|
||||
|
||||
@@ -39,6 +39,6 @@ def test_should_redirect_to_password_reset_sent_for_missing_email(
|
||||
url_for('.forgot_password'),
|
||||
data={'email_address': api_user_active.email_address})
|
||||
assert response.status_code == 200
|
||||
assert 'We’ve sent you an email with a link to reset your password.' \
|
||||
assert 'Click the link in the email to reset your password.' \
|
||||
in response.get_data(as_text=True)
|
||||
app.user_api_client.send_reset_password_url.assert_called_once_with(api_user_active.email_address)
|
||||
|
||||
Reference in New Issue
Block a user