mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
fix test
This commit is contained in:
@@ -23,23 +23,18 @@ def test_landing_page(end_to_end_context):
|
||||
# Retrieve some prominent elements on the page for testing.
|
||||
main_header = page.get_by_role(
|
||||
"heading",
|
||||
name="Reach people where they are with government-powered text messages",
|
||||
name="Sunsetting Notify.gov",
|
||||
)
|
||||
sign_in_button = page.get_by_role("link", name="Sign in with")
|
||||
|
||||
# Check to make sure the elements are visible.
|
||||
# Check to make sure the main header is visible.
|
||||
expect(main_header).to_be_visible()
|
||||
expect(sign_in_button).to_be_visible()
|
||||
|
||||
# Check to make sure the sign-in button and email links are correct.
|
||||
href_value = sign_in_button.get_attribute("href")
|
||||
assert href_value is not None, "The sign-in button does not have an href attribute"
|
||||
|
||||
# Retrieve all other main content headers and check that they're
|
||||
# visible.
|
||||
content_headers = [
|
||||
"Government texting made easy",
|
||||
"Key features",
|
||||
"Serving the public",
|
||||
"Text messaging reaches people",
|
||||
"A message for our partners",
|
||||
]
|
||||
|
||||
for content_header in content_headers:
|
||||
|
||||
Reference in New Issue
Block a user