This commit is contained in:
Beverly Nguyen
2025-03-24 12:48:28 -07:00
parent 7e2a2bad8e
commit 1a5f255539
3 changed files with 71 additions and 6 deletions

View File

@@ -1748,7 +1748,12 @@ def test_can_create_email_template_with_emoji(
@pytest.mark.parametrize(
("template_type", "expected_error"),
[
("sms", ("Please remove the unaccepted character 🍜 in your message, then save again")),
(
"sms",
(
"Please remove the unaccepted character 🍜 in your message, then save again"
),
),
],
)
def test_should_not_create_sms_template_with_emoji(
@@ -1773,14 +1778,21 @@ def test_should_not_create_sms_template_with_emoji(
_expected_status=200,
)
# print(page.main.prettify())
assert expected_error in normalize_spaces(page.select_one("#template_content-error").text)
assert expected_error in normalize_spaces(
page.select_one("#template_content-error").text
)
assert mock_create_service_template.called is False
@pytest.mark.parametrize(
("template_type", "expected_error"),
[
("sms", ("Please remove the unaccepted character 🍔 in your message, then save again")),
(
"sms",
(
"Please remove the unaccepted character 🍔 in your message, then save again"
),
),
],
)
def test_should_not_update_sms_template_with_emoji(