mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Make tests work with new template list HTML
Adds the extra text added to each checkbox label. It's a copy of the text of the link in the same list item which does add a lot of duplication to the test data. This reformats a lot of the test data, stacking it to separate out the duplicate items.
This commit is contained in:
@@ -258,7 +258,7 @@ def test_should_show_live_search_if_service_has_lots_of_folders(
|
||||
)
|
||||
|
||||
count_of_templates_and_folders = len(page.select('#template-list .govuk-label'))
|
||||
count_of_folders = len(page.select('.template-list-folder:first-child'))
|
||||
count_of_folders = len(page.select('.template-list-folder:first-of-type'))
|
||||
count_of_templates = count_of_templates_and_folders - count_of_folders
|
||||
|
||||
assert len(page.select('.live-search')) == 1
|
||||
|
||||
Reference in New Issue
Block a user