mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
Fixing tests
This commit is contained in:
@@ -2712,7 +2712,7 @@ def test_preview_notification_shows_preview(
|
|||||||
template_id=fake_uuid,
|
template_id=fake_uuid,
|
||||||
_expected_status=200,
|
_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(
|
assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == url_for(
|
||||||
"main.check_notification",
|
"main.check_notification",
|
||||||
service_id=service_one["id"],
|
service_id=service_one["id"],
|
||||||
|
|||||||
@@ -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("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(
|
assert parent_link["href"] == url_for(
|
||||||
"main.choose_template",
|
"main.choose_template",
|
||||||
service_id=SERVICE_ONE_ID,
|
service_id=SERVICE_ONE_ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user