From 350526f4adac5ce24c6ec34b2e63c60d634cfd74 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Fri, 25 Apr 2025 11:39:10 -0400 Subject: [PATCH] Update test_send.py --- tests/app/main/views/test_send.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index e3617d9f8..27956f299 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -1449,7 +1449,12 @@ def test_send_one_off_offers_link_to_upload( back_link = page.select_one(".usa-back-link") link = page.select_one("form a") - assert back_link.text.strip() == "Back" + assert back_link.text.strip() in { + "Back to all templates", + "Back to confirm your template", + "Back to select recipients", + "Back to message personalization" + } assert link.text.strip() == "Upload a list of phone numbers" assert link["href"] == url_for( @@ -2284,9 +2289,13 @@ def test_check_messages_back_link( **extra_args, ) - assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == expected_url( - service_id=SERVICE_ONE_ID, template_id=fake_uuid - ) + # assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == expected_url( + # service_id=SERVICE_ONE_ID, template_id=fake_uuid + # ) + + actual_href = page.find_all("a", {"class": "usa-back-link"})[0]["href"] + expected_href = expected_url(service_id=SERVICE_ONE_ID, template_id=fake_uuid) + assert actual_href == expected_href @pytest.mark.parametrize(