mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
Change how link is referenced in user profile test
Co-Authored-By: Katie Smith <klssmith@users.noreply.github.com>
This commit is contained in:
@@ -263,7 +263,7 @@ def test_non_gov_user_cannot_see_change_email_link(
|
|||||||
):
|
):
|
||||||
client_request.login(api_nongov_user_active)
|
client_request.login(api_nongov_user_active)
|
||||||
page = client_request.get('main.user_profile')
|
page = client_request.get('main.user_profile')
|
||||||
assert '<a class="govuk-link govuk-link--no-visited-state" href="/user-profile/email">' not in str(page)
|
assert not page.find('a', {'href': url_for('main.user_profile_email')})
|
||||||
assert page.select_one('h1').text.strip() == 'Your profile'
|
assert page.select_one('h1').text.strip() == 'Your profile'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user