diff --git a/app/templates/views/api/keys.html b/app/templates/views/api/keys.html index 72b9be879..0de391650 100644 --- a/app/templates/views/api/keys.html +++ b/app/templates/views/api/keys.html @@ -46,7 +46,9 @@ {% endcall %} {% else %} {% call field(align='right', status='error') %} - Revoke + + Revoke {{ item.name }} + {% endcall %} {% endif %} {% endcall %} diff --git a/tests/app/main/views/test_api_integration.py b/tests/app/main/views/test_api_integration.py index 5efe4ab0d..135387493 100644 --- a/tests/app/main/views/test_api_integration.py +++ b/tests/app/main/views/test_api_integration.py @@ -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)