Use template-list-item selector

For consistency with other assertions
This commit is contained in:
Chris Hill-Scott
2021-04-14 10:11:42 +01:00
parent 559c400e84
commit e32fc7c606

View File

@@ -533,7 +533,7 @@ def test_template_id_is_searchable_for_services_with_api_keys(
normalize_spaces(item.text)
for item in page.select(
# Text which should be hidden from all users
r'#template-list .govuk-\!-display-none'
r'.template-list-item .govuk-\!-display-none'
)
] == [
template_2["id"],