mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Update test_send.py
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user