mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 03:10:16 -04:00
Swap headings for list items in template list
I'm mainly making this change because it's useful for the CSS that styles the hint text when the link is focused for the link to have no parent container. That being said, there isn't really enough content underneath these headings to justify them as it is. I've wrapped them in a list instead because: - they're structured like a list - we already called them a `template-list` This commit also replaces the `message-type` class on the paragraph below where the headings went, for consistency. It also removes the CSS for that class as I couldn't find anywhere else that used it now.
This commit is contained in:
@@ -188,7 +188,7 @@ def test_should_show_page_for_choosing_a_template(
|
||||
for index, expected_link in enumerate(expected_nav_links):
|
||||
assert links_in_page[index].text.strip() == expected_link
|
||||
|
||||
template_links = page.select('#template-list .govuk-label a, .message-name a')
|
||||
template_links = page.select('#template-list .govuk-label a, .template-list-item a')
|
||||
|
||||
assert len(template_links) == len(expected_templates)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user