Add a message saying a template has been redacted

This is useful if it’s been redacted by someone who isn’t you.
This commit is contained in:
Chris Hill-Scott
2017-06-28 15:26:09 +01:00
parent afbe175d15
commit 6e48dc7689
5 changed files with 31 additions and 5 deletions

View File

@@ -987,3 +987,21 @@ def test_should_show_redact_template(
)
mock_redact_template.assert_called_once_with(SERVICE_ONE_ID, fake_uuid)
def test_should_show_hint_once_template_redacted(
client_request,
mocker,
service_one,
fake_uuid,
):
mock_get_service_email_template(mocker, redact_personalisation=True)
page = client_request.get(
'main.view_template',
service_id=SERVICE_ONE_ID,
template_id=fake_uuid,
)
assert page.select('.hint')[0].text == 'Personalisation is hidden after sending'