Update tests for content changes.

This commit is contained in:
Rebecca Law
2019-09-13 16:00:56 +01:00
committed by Chris Hill-Scott
parent c3d806dd50
commit 18e3eb6b32
9 changed files with 70 additions and 70 deletions

View File

@@ -35,10 +35,10 @@ from tests.conftest import (
(
'ZZZZZZZZ zzzzzzz@example.gov.uk '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration '
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration '
'Change details'
)
),
@@ -46,19 +46,19 @@ from tests.conftest import (
active_user_empty_permissions,
(
'Test User With Empty Permissions (you) '
'Cant See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot See dashboard '
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
),
(
'ZZZZZZZZ zzzzzzz@example.gov.uk '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
),
),
(
@@ -66,18 +66,18 @@ from tests.conftest import (
(
'Test User With Permissions (you) '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
),
(
'ZZZZZZZZ zzzzzzz@example.gov.uk '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
)
),
(
@@ -85,18 +85,18 @@ from tests.conftest import (
(
'Test User With Permissions (you) '
'Can See dashboard '
'Cant Send messages '
'Cannot Send messages '
'Can Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
),
(
'ZZZZZZZZ zzzzzzz@example.gov.uk '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
)
),
(
@@ -104,18 +104,18 @@ from tests.conftest import (
(
'Test User With Permissions (you) '
'Can See dashboard '
'Cant Send messages '
'Cannot Send messages '
'Can Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
),
(
'ZZZZZZZZ zzzzzzz@example.gov.uk '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
)
),
])
@@ -178,19 +178,19 @@ def test_should_show_caseworker_on_overview_page(
assert normalize_spaces(page.select('.user-list-item')[0].text) == (
'Test User With Permissions (you) '
'Can See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
)
# [1:5] are invited users
assert normalize_spaces(page.select('.user-list-item')[6].text) == (
'Test User zzzzzzz@example.gov.uk '
'Cant See dashboard '
'Cannot See dashboard '
'Can Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
)
@@ -829,7 +829,7 @@ def test_cancel_invited_user_doesnt_work_if_user_not_invited_to_this_service(
'invited_user@test.gov.uk (invited) '
'Can See dashboard '
'Can Send messages '
'Cant Add and edit templates '
'Cannot Add and edit templates '
'Can Manage settings, team and usage '
'Can Manage API integration '
'Cancel invitation'
@@ -837,11 +837,11 @@ def test_cancel_invited_user_doesnt_work_if_user_not_invited_to_this_service(
('cancelled', (
'invited_user@test.gov.uk (cancelled invite) '
# all permissions are greyed out
'Cant See dashboard '
'Cant Send messages '
'Cant Add and edit templates '
'Cant Manage settings, team and usage '
'Cant Manage API integration'
'Cannot See dashboard '
'Cannot Send messages '
'Cannot Add and edit templates '
'Cannot Manage settings, team and usage '
'Cannot Manage API integration'
)),
])
def test_manage_users_shows_invited_user(
@@ -904,7 +904,7 @@ def test_user_cant_invite_themselves(
)
assert page.h1.string.strip() == 'Invite a team member'
form_error = page.find('span', class_='error-message').string.strip()
assert form_error == "You cant send an invitation to yourself"
assert form_error == "You cannot send an invitation to yourself"
assert not mock_create_invite.called