Update test_send.py

This commit is contained in:
Jonathan Bobel
2025-04-25 11:39:10 -04:00
parent fb5f7d969e
commit 350526f4ad

View File

@@ -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(