From b98e3d87e2d83d5d7ca146c8bb6397cad371f602 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Mon, 2 Dec 2024 09:59:58 -0500 Subject: [PATCH] Fixing tests --- tests/app/main/views/test_send.py | 2 +- tests/app/main/views/test_template_folders.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 1a262ebb2..806474c49 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -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"], diff --git a/tests/app/main/views/test_template_folders.py b/tests/app/main/views/test_template_folders.py index 0bf2fcb08..a261f252e 100644 --- a/tests/app/main/views/test_template_folders.py +++ b/tests/app/main/views/test_template_folders.py @@ -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,