From 01eac988f1d959b86af95503f1d5b256f6c8fd67 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Tue, 13 Feb 2024 14:02:05 -0800 Subject: [PATCH] fixed testing --- app/templates/views/check/preview.html | 2 +- tests/app/main/views/test_send.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/views/check/preview.html b/app/templates/views/check/preview.html index 379db7519..fda9bc5f6 100644 --- a/app/templates/views/check/preview.html +++ b/app/templates/views/check/preview.html @@ -44,7 +44,7 @@
{% call(item, row_number) list_table( recipients.displayed_rows, - caption="Note: Only the first 5 rows are dislayed here.", + caption="Note: Only the first 5 rows are displayed here.", caption_visible=True, field_headings=recipients.column_headers ) %} diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index f98bf789c..c25dfc2cf 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -971,7 +971,7 @@ def test_upload_valid_csv_shows_preview_and_table( ) assert page.h1.text.strip() == "Preview" - assert page.select("h2")[1].text.strip() == "Preview list" + assert page.select("h2")[1].text.strip() == "Recipients list" assert page.h2.text.strip() == "Message" assert page.select_one(".sms-message-recipient").text.strip() == expected_recipient assert page.select_one(".sms-message-wrapper").text.strip() == expected_message @@ -2628,7 +2628,7 @@ def test_preview_notification_shows_preview( # assert page.h1.text.strip() == when # else: # assert page.h1.text.strip() == "Now" - assert page.h1.text.strip() == "Preview of ‘Two week reminder’" + assert page.h1.text.strip() == "Preview" assert (page.find_all("a", {"class": "usa-back-link"})[0]["href"]) == url_for( "main.check_notification", service_id=service_one["id"],