mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Merge pull request #2206 from GSA/2125-send-message-a11y-audit-unique-ids
Send Message A11Y Audit - Unique IDs and also refactor error message on templates page
This commit is contained in:
@@ -1521,7 +1521,7 @@ def test_link_to_upload_not_offered_when_entering_personalisation(
|
||||
|
||||
# We’re entering personalization
|
||||
assert page.select_one("input[type=text]")["name"] == "placeholder_value"
|
||||
assert page.select_one("label[for=placeholder_value]").text.strip() == "name"
|
||||
assert page.select_one("label[for=phone-number]").text.strip() == "name"
|
||||
# No ‘Upload’ link shown
|
||||
assert len(page.select("main a")) == 0
|
||||
assert "Upload" not in page.select_one("main").text
|
||||
|
||||
@@ -175,7 +175,7 @@ def test_should_show_empty_text_box(
|
||||
# shouldn’t also be set on the textbox itself
|
||||
assert "data-module" not in textbox
|
||||
assert (
|
||||
normalize_spaces(page.select_one("label[for=placeholder_value]").text) == "one"
|
||||
normalize_spaces(page.select_one("label[for=phone-number]").text) == "one"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user