diff --git a/app/templates/components/header.html b/app/templates/components/header.html index 791d67495..d84c80a5a 100644 --- a/app/templates/components/header.html +++ b/app/templates/components/header.html @@ -99,9 +99,10 @@ - Sign - in with Login.gov logo + + Sign in with + Login.gov logo {% endif %} diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py index 51f1a5c83..2f9ac1727 100644 --- a/tests/app/main/views/test_index.py +++ b/tests/app/main/views/test_index.py @@ -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