mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-28 01:50:12 -04:00
Add descriptive links to API keys page
The links had no descriptive text, so all read 'Revoke'. This adds hidden text specific to the item they relate to.
This commit is contained in:
@@ -46,7 +46,9 @@
|
||||
{% endcall %}
|
||||
{% else %}
|
||||
{% call field(align='right', status='error') %}
|
||||
<a class="govuk-link govuk-link--no-visited-state" href='{{ url_for('.revoke_api_key', service_id=current_service.id, key_id=item.id) }}'>Revoke</a>
|
||||
<a class="govuk-link govuk-link--no-visited-state" href='{{ url_for('.revoke_api_key', service_id=current_service.id, key_id=item.id) }}'>
|
||||
Revoke<span class="govuk-visually-hidden"> {{ item.name }}</span>
|
||||
</a>
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -197,7 +197,7 @@ def test_should_show_api_keys_page(
|
||||
|
||||
assert rows[0] == 'API keys Action'
|
||||
assert rows[1] == 'another key name Revoked 1 January at 1:00am'
|
||||
assert rows[2] == 'some key name Revoke'
|
||||
assert rows[2] == 'some key name Revoke some key name'
|
||||
|
||||
mock_get_api_keys.assert_called_once_with(SERVICE_ONE_ID)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user