mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 13:18:24 -04:00
fixed test
This commit is contained in:
@@ -2610,11 +2610,9 @@ def test_preview_notification_shows_preview(
|
|||||||
session["recipient"] = "2028675301"
|
session["recipient"] = "2028675301"
|
||||||
session["placeholders"] = {}
|
session["placeholders"] = {}
|
||||||
|
|
||||||
|
|
||||||
page = client_request.get(
|
page = client_request.get(
|
||||||
"main.preview_notification", service_id=service_one["id"], template_id=fake_uuid
|
"main.preview_notification", service_id=service_one["id"], template_id=fake_uuid
|
||||||
)
|
)
|
||||||
|
|
||||||
assert page.h1.text.strip() == "Preview"
|
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",
|
||||||
|
|||||||
Reference in New Issue
Block a user