Fixing tests

This commit is contained in:
Jonathan Bobel
2024-12-02 09:59:58 -05:00
parent 90c7386b63
commit b98e3d87e2
2 changed files with 4 additions and 4 deletions

View File

@@ -2712,7 +2712,7 @@ def test_preview_notification_shows_preview(
template_id=fake_uuid,
_expected_status=200,
)
assert page.h1.text.strip() == "Preview"
assert page.h1.text.strip() == "Preview for sending"
assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == url_for(
"main.check_notification",
service_id=service_one["id"],

View File

@@ -347,11 +347,11 @@ def test_should_show_templates_folder_page(
)
assert normalize_spaces(page.select_one("title").text) == expected_title_tag
assert normalize_spaces(page.select_one("h1").text) == expected_page_title
assert normalize_spaces(page.select_one("h2").text) == expected_page_title
assert len(page.select("h1 a")) == len(expected_parent_link_args)
assert len(page.select("h2 a")) == len(expected_parent_link_args)
for index, parent_link in enumerate(page.select("h1 a")):
for index, parent_link in enumerate(page.select("h2 a")):
assert parent_link["href"] == url_for(
"main.choose_template",
service_id=SERVICE_ONE_ID,