From aedf875110ae34cf38b0ec873fdce54fd1ee2bb9 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 10 Jun 2021 15:11:33 +0100 Subject: [PATCH] Improve permenant failure message. Update delivery status document page. --- app/templates/views/message-status.html | 1 + app/templates/views/notifications/notification.html | 2 +- tests/app/main/views/test_notifications.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/templates/views/message-status.html b/app/templates/views/message-status.html index b1e1bc2fd..63c6a5cad 100644 --- a/app/templates/views/message-status.html +++ b/app/templates/views/message-status.html @@ -80,6 +80,7 @@ ('Printed', 'The provider has printed the letter. Letters are printed at 5:30pm and dispatched the next working day.'), ('Cancelled', 'Sending cancelled. Your letter will not be printed or dispatched.'), ('Technical failure', 'Notify had an unexpected error while sending the letter to our printing provider.'), + ('Permenent failure', 'The provider cannot print the letter. Your letter will not be dispatched.') ] %} {% call row() %} {{ text_field(message_length) }} diff --git a/app/templates/views/notifications/notification.html b/app/templates/views/notifications/notification.html index 72567c7aa..07924bede 100644 --- a/app/templates/views/notifications/notification.html +++ b/app/templates/views/notifications/notification.html @@ -51,7 +51,7 @@

{% elif notification_status == 'permanent-failure' %}

- Permanent failure – The postal provider is unable to print the letter. Your letter has not been sent. + Permanent failure – The provider cannot print the letter. Your letter will not be dispatched.

{% elif notification_status == 'technical-failure' %}

diff --git a/tests/app/main/views/test_notifications.py b/tests/app/main/views/test_notifications.py index 6ad7af8c5..dd74d1723 100644 --- a/tests/app/main/views/test_notifications.py +++ b/tests/app/main/views/test_notifications.py @@ -442,7 +442,7 @@ def test_notification_page_shows_validation_failed_precompiled_letter( @pytest.mark.parametrize('notification_status, expected_message', ( ( 'permanent-failure', - 'Permanent failure – The postal provider is unable to print the letter. Your letter has not been sent.', + 'Permanent failure – The provider cannot print the letter. Your letter will not be dispatched.', ), ( 'cancelled',