Fix python tests broken by cookie banner

This commit is contained in:
Tom Byers
2019-12-20 13:51:15 +00:00
parent 61a5948020
commit beeb273d6c
8 changed files with 24 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ def test_should_render_email_verification_resend_show_email_address_and_resend_v
assert page.h1.string == 'Check your email'
expected = "A new confirmation email has been sent to {}".format(api_user_active['email_address'])
message = page.find_all('p')[1].text
message = page.select('main p')[0].text
assert message == expected
mock_send_verify_email.assert_called_with(api_user_active['id'], api_user_active['email_address'])
@@ -66,7 +66,7 @@ def test_should_render_correct_resend_template_for_pending_user(
assert page.h1.string == 'Check your mobile number'
expected = 'Check your mobile phone number is correct and then resend the security code.'
message = page.find_all('p')[1].text
message = page.select('main p')[0].text
assert message == expected
assert page.find('form').input['value'] == api_user_pending['mobile_number']