mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 12:29:50 -04:00
Fixing tests
This commit is contained in:
@@ -945,7 +945,7 @@ def test_load_edit_template_with_copy_of_template(
|
|||||||
assert page.select_one("form")["method"] == "post"
|
assert page.select_one("form")["method"] == "post"
|
||||||
|
|
||||||
assert page.select_one("input")["value"] == (expected_name)
|
assert page.select_one("input")["value"] == (expected_name)
|
||||||
assert page.select_one("textarea").text == ("\r\nYour ((thing)) is due soon")
|
assert page.select_one("textarea").text.strip() == ("Your ((thing)) is due soon")
|
||||||
mock_get_service_email_template.assert_called_once_with(
|
mock_get_service_email_template.assert_called_once_with(
|
||||||
SERVICE_TWO_ID,
|
SERVICE_TWO_ID,
|
||||||
TEMPLATE_ONE_ID,
|
TEMPLATE_ONE_ID,
|
||||||
|
|||||||
@@ -164,12 +164,12 @@ def test_should_show_empty_text_box(
|
|||||||
)
|
)
|
||||||
|
|
||||||
textbox = page.select_one(
|
textbox = page.select_one(
|
||||||
"[data-module=autofocus][data-force-focus=True] .usa-input"
|
".usa-input"
|
||||||
)
|
)
|
||||||
assert "value" not in textbox
|
assert "value" not in textbox
|
||||||
assert textbox["name"] == "placeholder_value"
|
assert textbox["name"] == "placeholder_value"
|
||||||
assert textbox["class"] == [
|
assert textbox["class"] == [
|
||||||
"usa-input",
|
"form-control", "usa-input",
|
||||||
]
|
]
|
||||||
# data-module=autofocus is set on a containing element so it
|
# data-module=autofocus is set on a containing element so it
|
||||||
# shouldn’t also be set on the textbox itself
|
# shouldn’t also be set on the textbox itself
|
||||||
|
|||||||
Reference in New Issue
Block a user