mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Fix python tests broken by cookie banner
This commit is contained in:
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user