Got the tests to pass, so doing a commit

This commit is contained in:
Jonathan Bobel
2023-08-15 13:22:39 -04:00
parent ff33c7c7f9
commit 6b22c347da
8 changed files with 124 additions and 12 deletions

View File

@@ -556,8 +556,7 @@ def test_should_show_monthly_breakdown_of_template_usage(
assert ' '.join(table_rows[0].text.split()) == (
'My first template '
'Text message template '
'2 '
'messages sent'
'2'
)
assert len(table_rows) == len(['October'])

View File

@@ -601,7 +601,7 @@ def test_get_manage_folder_viewing_permissions_for_users(
assert normalize_spaces(page.select_one('title').text) == (
'folder_two Templates service one Notify.gov'
)
form_labels = page.select('legend.govuk-fieldset__legend')
form_labels = page.select('legend.usa-legend')
assert normalize_spaces(form_labels[0].text) == "Team members who can see this folder"
checkboxes = page.select('input[name=users_with_permission]')

View File

@@ -253,7 +253,7 @@ def test_should_show_live_search_if_list_of_templates_taller_than_screen(
'Search by name'
)
assert len(page.select(search['data-targets'])) == len(page.select('#template-list .usa-label')) == 20
assert len(page.select(search['data-targets'])) == len(page.select('#template-list .usa-checkbox')) == 20
def test_should_label_search_by_id_for_services_with_api_keys(
@@ -290,7 +290,7 @@ def test_should_show_live_search_if_service_has_lots_of_folders(
service_id=SERVICE_ONE_ID,
)
count_of_templates_and_folders = len(page.select('#template-list .usa-label'))
count_of_templates_and_folders = len(page.select('#template-list .usa-checkbox'))
count_of_folders = len(page.select('.template-list-folder:first-of-type'))
count_of_templates = count_of_templates_and_folders - count_of_folders