mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 02:58:26 -04:00
Fix broken test and include note about why
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -21,8 +21,10 @@ def test_render_sign_in_template_for_new_user(client_request):
|
|||||||
# Removing for the pilot
|
# Removing for the pilot
|
||||||
# assert page.select('main a')[0].text == 'create one now'
|
# assert page.select('main a')[0].text == 'create one now'
|
||||||
# assert page.select('main a')[0]['href'] == url_for('main.register')
|
# assert page.select('main a')[0]['href'] == url_for('main.register')
|
||||||
assert page.select("main a")[1].text == "Forgot your password?"
|
# TODO: Fix this test to be less brittle! If the Login.gov link is enabled,
|
||||||
assert page.select("main a")[1]["href"] == url_for("main.forgot_password")
|
# then these indices need to be 1 instead of 0.
|
||||||
|
assert page.select("main a")[0].text == "Forgot your password?"
|
||||||
|
assert page.select("main a")[0]["href"] == url_for("main.forgot_password")
|
||||||
assert "Sign in again" not in normalize_spaces(page.text)
|
assert "Sign in again" not in normalize_spaces(page.text)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user