Rename ‘caseworker’ to basic view on team members

Missed this in https://github.com/alphagov/notifications-admin/pull/2146
This commit is contained in:
Chris Hill-Scott
2018-07-10 12:17:22 +01:00
parent 70ba1bb7f2
commit 0008d7cda7
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -67,7 +67,7 @@
{% if 'caseworking' in current_service.permissions %} {% if 'caseworking' in current_service.permissions %}
{{ tick_cross( {{ tick_cross(
user.status != 'cancelled', user.status != 'cancelled',
'Admin' 'Admin view'
) }} ) }}
{% endif %} {% endif %}
{{ tick_cross( {{ tick_cross(
@@ -89,7 +89,7 @@
{% else %} {% else %}
{{ tick_cross( {{ tick_cross(
True, True,
'Caseworker' 'Basic view'
) }} ) }}
{% endif %} {% endif %}
{% if 'email_auth' in current_service['permissions'] %} {% if 'email_auth' in current_service['permissions'] %}
+2 -2
View File
@@ -121,7 +121,7 @@ def test_should_show_caseworker_on_overview_page(
assert normalize_spaces(page.select_one('h1').text) == 'Team members' assert normalize_spaces(page.select_one('h1').text) == 'Team members'
assert normalize_spaces(page.select('.user-list-item')[0].text) == ( assert normalize_spaces(page.select('.user-list-item')[0].text) == (
'Test User With Permissions (you) ' 'Test User With Permissions (you) '
'Can Admin ' 'Can Admin view '
'Cant Send messages ' 'Cant Send messages '
'Cant Add and edit templates ' 'Cant Add and edit templates '
'Cant Manage service ' 'Cant Manage service '
@@ -130,7 +130,7 @@ def test_should_show_caseworker_on_overview_page(
# [1:5] are invited users # [1:5] are invited users
assert normalize_spaces(page.select('.user-list-item')[6].text) == ( assert normalize_spaces(page.select('.user-list-item')[6].text) == (
'Test User zzzzzzz@example.gov.uk ' 'Test User zzzzzzz@example.gov.uk '
'Can Caseworker' 'Can Basic view'
) )