diff --git a/app/templates/views/organisations/organisation/users/index.html b/app/templates/views/organisations/organisation/users/index.html index 56fa4fd82..9880bf2d7 100644 --- a/app/templates/views/organisations/organisation/users/index.html +++ b/app/templates/views/organisations/organisation/users/index.html @@ -53,7 +53,7 @@
{% if user.status == 'pending' %} - Cancel invitation + Cancel invitation for {{ user.email_address }} {% else %} Remove {{ user.name }} {{ user.email_address }} {% endif %} diff --git a/tests/app/main/views/organisations/test_organisations.py b/tests/app/main/views/organisations/test_organisations.py index da67bb313..6d60ede22 100644 --- a/tests/app/main/views/organisations/test_organisations.py +++ b/tests/app/main/views/organisations/test_organisations.py @@ -786,7 +786,9 @@ def test_manage_org_users_shows_correct_link_next_to_each_user( # The first user is an invited user, so has the link to cancel the invitation. # The second two users are active users, so have the link to be removed from the org - assert normalize_spaces(users[0].text) == 'invited_user@test.gov.uk (invited) Cancel invitation' + assert normalize_spaces( + users[0].text + ) == 'invited_user@test.gov.uk (invited) Cancel invitation for invited_user@test.gov.uk' assert normalize_spaces(users[1].text) == 'Test User 1 test@gov.uk Remove Test User 1 test@gov.uk' assert normalize_spaces(users[2].text) == 'Test User 2 testt@gov.uk Remove Test User 2 testt@gov.uk'