From be5f789c5f5585833f030d00449c77803fe5aea8 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Wed, 11 Dec 2024 09:15:18 -0500 Subject: [PATCH] Trying to get successful build --- tests/app/main/views/test_index.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py index e32ca11ea..202269ae3 100644 --- a/tests/app/main/views/test_index.py +++ b/tests/app/main/views/test_index.py @@ -20,21 +20,14 @@ def test_non_logged_in_user_can_see_homepage( "Reach people where they are with government-powered text messages" ) - assert ( - page.select_one( - "a.usa-button.login-button.login-button--primary.margin-right-2" - ).text - == "Sign in with \n" + # 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" ) - assert page.select_one("meta[name=description]") is not None - # This area is hidden for the pilot - # 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 "Sign in with" in button.text.strip() # Assert button text + assert button.find("img")["alt"] == "Login.gov logo" # Assert image presence + assert page.select_one("meta[name=description]") is not None assert page.select_one("#whos-using-notify a") is None