Fixing a test

This commit is contained in:
Jonathan Bobel
2025-01-29 14:19:16 -05:00
parent 4a359b1b17
commit f6282f3528
2 changed files with 5 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ def test_non_logged_in_user_can_see_homepage(
# Assert the entire HTML of the button to include the image
button = page.select_one(
"a.usa-button.login-button.login-button--primary.margin-right-2"
"#header_login_button"
)
assert "Sign in with" in button.text.strip() # Assert button text
assert button.find("img")["alt"] == "Login.gov logo" # Assert image presence