mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 08:16:51 -04:00
Hide form legend on choose reply page
The `<h1>` on this page says all the user needs to know. In research we saw that users didn’t even read the legend, even when prompted to!
This commit is contained in:
@@ -74,7 +74,9 @@ def test_show_correct_title_and_description_for_sender_type(
|
||||
)
|
||||
|
||||
assert page.select_one('h1').text == expected_title
|
||||
assert normalize_spaces(page.select_one('legend').text) == expected_description
|
||||
|
||||
for element in ('legend', 'legend .visually-hidden'):
|
||||
assert normalize_spaces(page.select_one(element).text) == expected_description
|
||||
|
||||
|
||||
@pytest.mark.parametrize('template_mock, sender_data', [
|
||||
|
||||
Reference in New Issue
Block a user