enable login.gov link on demo and production and adjust test

This commit is contained in:
Kenneth Kehl
2024-02-20 08:28:26 -08:00
committed by Carlo Costino
parent 15c1863ab0
commit 470574e197
2 changed files with 3 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ def sign_in():
form=form,
again=bool(redirect_url),
other_device=other_device,
login_gov_enabled=bool(notify_env in ["development", "staging"]),
login_gov_enabled=True,
password_reset_url=password_reset_url,
initial_signin_url=initial_signin_url,
)

View File

@@ -21,8 +21,8 @@ def test_render_sign_in_template_for_new_user(client_request):
# Removing for the pilot
# 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].text == "Forgot your password?"
assert page.select("main a")[0]["href"] == url_for("main.forgot_password")
assert page.select("main a")[1].text == "Forgot your password?"
assert page.select("main a")[1]["href"] == url_for("main.forgot_password")
assert "Sign in again" not in normalize_spaces(page.text)