Reword 2FA page to match email confirmation

This commit is contained in:
Chris Hill-Scott
2016-04-23 16:11:41 +01:00
parent 7b540fe10b
commit c551fd43e0
4 changed files with 10 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ def test_should_render_two_factor_page(app_,
'email': api_user_active.email_address}
response = client.get(url_for('main.two_factor'))
assert response.status_code == 200
assert '''We've sent you a text message with a verification code.''' in response.get_data(as_text=True)
assert '''Weve sent you a text message with a verification code.''' in response.get_data(as_text=True)
def test_should_login_user_and_redirect_to_service_dashboard(app_,

View File

@@ -16,9 +16,9 @@ def test_should_return_verify_template(app_,
assert response.status_code == 200
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.h1.text == 'Text verification'
assert page.h1.text == 'Check your phone'
message = page.find_all('p')[1].text
assert message == "We've sent you a text message with a verification code."
assert message == "Weve sent you a text message with a verification code."
def test_should_redirect_to_add_service_when_sms_code_is_correct(app_,