From f6282f3528ffa5cf6442edb3118f63e91b566cb0 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 29 Jan 2025 14:19:16 -0500 Subject: [PATCH] Fixing a test --- app/templates/components/header.html | 7 ++++--- tests/app/main/views/test_index.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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