mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-26 13:20:54 -05:00
Add hidden text next to the 'Cancel invitation' link
This matches what we do on the service team members page.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
<div class="govuk-grid-column-one-quarter">
|
||||
{% if user.status == 'pending' %}
|
||||
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.cancel_invited_org_user', org_id=current_org.id, invited_user_id=user.id)}}">Cancel invitation</a>
|
||||
<a class="govuk-link govuk-link--no-visited-state user-list-edit-link" href="{{ url_for('.cancel_invited_org_user', org_id=current_org.id, invited_user_id=user.id)}}">Cancel invitation<span class="govuk-visually-hidden"> for {{ user.email_address }}</span></a>
|
||||
{% else %}
|
||||
<a class="govuk-link govuk-link--destructive user-list-edit-link" href="{{ url_for('.edit_organisation_user', org_id=current_org.id, user_id=user.id)}}">Remove<span class="govuk-visually-hidden"> {{ user.name }} {{ user.email_address }}</span></a>
|
||||
{% endif %}
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user