mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Trying to get successful build
This commit is contained in:
@@ -20,21 +20,14 @@ def test_non_logged_in_user_can_see_homepage(
|
|||||||
"Reach people where they are with government-powered text messages"
|
"Reach people where they are with government-powered text messages"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert (
|
# Assert the entire HTML of the button to include the image
|
||||||
page.select_one(
|
button = page.select_one(
|
||||||
"a.usa-button.login-button.login-button--primary.margin-right-2"
|
"a.usa-button.login-button.login-button--primary.margin-right-2"
|
||||||
).text
|
|
||||||
== "Sign in with \n"
|
|
||||||
)
|
)
|
||||||
assert page.select_one("meta[name=description]") is not None
|
assert "Sign in with" in button.text.strip() # Assert button text
|
||||||
# This area is hidden for the pilot
|
assert button.find("img")["alt"] == "Login.gov logo" # Assert image presence
|
||||||
# assert normalize_spaces(page.select_one('#whos-using-notify').text) == (
|
|
||||||
# 'Who’s using Notify.gov ' # Hiding this next area for the pilot
|
|
||||||
# # Hiding this next area for the pilot
|
|
||||||
# # 'See the list of services and organizations. '
|
|
||||||
# 'There are 111 Organizations and 9,999 Services using Notify.'
|
|
||||||
# )
|
|
||||||
|
|
||||||
|
assert page.select_one("meta[name=description]") is not None
|
||||||
assert page.select_one("#whos-using-notify a") is None
|
assert page.select_one("#whos-using-notify a") is None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user