fixed testing

This commit is contained in:
Beverly Nguyen
2024-02-13 14:02:05 -08:00
parent 49d270521a
commit 01eac988f1
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@
<div class="usa-table-container--scrollable" tabindex="0">
{% 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
) %}

View File

@@ -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"],