Remove last used message if key’s never been used

I don’t think it adds anything to tell you that a key’s never been used.
The value of the ‘key was used 3 minutes ago’ message is in stopping you
accidentally revoking something you shouldn’t have.
This commit is contained in:
Chris Hill-Scott
2017-07-24 14:55:39 +01:00
parent e2bd2e0439
commit 17a7f5f2c6
3 changed files with 7 additions and 7 deletions

View File

@@ -725,9 +725,7 @@ def test_should_show_delete_template_page_with_never_used_block(
_test_page_title=False,
)
assert page.h1.text == 'Are you sure you want to delete Two week reminder?'
assert normalize_spaces(page.select('.banner-dangerous p')[0].text) == (
'Its never been used.'
)
assert not page.select('.banner-dangerous p')
assert normalize_spaces(page.select('.sms-message-wrapper')[0].text) == (
'service one: Template <em>content</em> with & entity'
)