mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Updated test
This commit is contained in:
@@ -218,7 +218,7 @@ def test_if_existing_user_accepts_twice_they_redirect_to_sign_in(
|
|||||||
|
|
||||||
assert (
|
assert (
|
||||||
page.h1.string,
|
page.h1.string,
|
||||||
page.select("main p")[1].text.strip(),
|
page.select("main p")[0].text.strip(),
|
||||||
) == (
|
) == (
|
||||||
"You need to sign in again",
|
"You need to sign in again",
|
||||||
"We signed you out because you have not used Notify for a while.",
|
"We signed you out because you have not used Notify for a while.",
|
||||||
@@ -332,7 +332,7 @@ def test_existing_user_of_service_get_redirected_to_signin(
|
|||||||
|
|
||||||
assert (
|
assert (
|
||||||
page.h1.string,
|
page.h1.string,
|
||||||
page.select("main p")[1].text.strip(),
|
page.select("main p")[0].text.strip(),
|
||||||
) == (
|
) == (
|
||||||
"You need to sign in again",
|
"You need to sign in again",
|
||||||
"We signed you out because you have not used Notify for a while.",
|
"We signed you out because you have not used Notify for a while.",
|
||||||
@@ -421,7 +421,7 @@ def test_existing_signed_out_user_accept_invite_redirects_to_sign_in(
|
|||||||
assert mock_accept_invite.call_count == 1
|
assert mock_accept_invite.call_count == 1
|
||||||
assert (
|
assert (
|
||||||
page.h1.string,
|
page.h1.string,
|
||||||
page.select("main p")[1].text.strip(),
|
page.select("main p")[0].text.strip(),
|
||||||
) == (
|
) == (
|
||||||
"You need to sign in again",
|
"You need to sign in again",
|
||||||
"We signed you out because you have not used Notify for a while.",
|
"We signed you out because you have not used Notify for a while.",
|
||||||
|
|||||||
Reference in New Issue
Block a user