mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Fix failing tests
This includes a fix for the commit hash test, which was not referencing the Flask app in a valid way. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -221,7 +221,9 @@ def test_if_existing_user_accepts_twice_they_redirect_to_sign_in(
|
||||
page.select("main p")[0].text.strip(),
|
||||
) == (
|
||||
"You need to sign in again",
|
||||
"We signed you out because you have not used Notify for a while.",
|
||||
# TODO: Improve this given Login.gov configuration.
|
||||
# "We signed you out because you have not used Notify for a while.",
|
||||
"You have left to use Login.gov to sign in",
|
||||
)
|
||||
# We don’t let people update `email_access_validated_at` using an
|
||||
# already-accepted invite
|
||||
@@ -335,7 +337,9 @@ def test_existing_user_of_service_get_redirected_to_signin(
|
||||
page.select("main p")[0].text.strip(),
|
||||
) == (
|
||||
"You need to sign in again",
|
||||
"We signed you out because you have not used Notify for a while.",
|
||||
# TODO: Improve this given Login.gov configuration.
|
||||
# "We signed you out because you have not used Notify for a while.",
|
||||
"You have left to use Login.gov to sign in",
|
||||
)
|
||||
assert mock_accept_invite.call_count == 1
|
||||
|
||||
@@ -424,7 +428,9 @@ def test_existing_signed_out_user_accept_invite_redirects_to_sign_in(
|
||||
page.select("main p")[0].text.strip(),
|
||||
) == (
|
||||
"You need to sign in again",
|
||||
"We signed you out because you have not used Notify for a while.",
|
||||
# TODO: Improve this given Login.gov configuration.
|
||||
# "We signed you out because you have not used Notify for a while.",
|
||||
"You have left to use Login.gov to sign in",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user