Merge pull request #927 from alphagov/quis-patch-1

Reword resend email page
This commit is contained in:
Chris Hill-Scott
2016-09-07 15:25:33 +01:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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 'Weve 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 'Weve 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)