mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 16:18:26 -04:00
fixed testing
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
<div class="usa-table-container--scrollable" tabindex="0">
|
<div class="usa-table-container--scrollable" tabindex="0">
|
||||||
{% call(item, row_number) list_table(
|
{% call(item, row_number) list_table(
|
||||||
recipients.displayed_rows,
|
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,
|
caption_visible=True,
|
||||||
field_headings=recipients.column_headers
|
field_headings=recipients.column_headers
|
||||||
) %}
|
) %}
|
||||||
|
|||||||
@@ -971,7 +971,7 @@ def test_upload_valid_csv_shows_preview_and_table(
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert page.h1.text.strip() == "Preview"
|
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.h2.text.strip() == "Message"
|
||||||
assert page.select_one(".sms-message-recipient").text.strip() == expected_recipient
|
assert page.select_one(".sms-message-recipient").text.strip() == expected_recipient
|
||||||
assert page.select_one(".sms-message-wrapper").text.strip() == expected_message
|
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
|
# assert page.h1.text.strip() == when
|
||||||
# else:
|
# else:
|
||||||
# assert page.h1.text.strip() == "Now"
|
# 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(
|
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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user