mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Got the tests to pass, so doing a commit
This commit is contained in:
@@ -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'])
|
||||
|
||||
@@ -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]')
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user