Stop showing validation-failed letters as cancelled in table

Changed the table for displaying all notifications to show letters which
have the status of 'validation-failed' as 'Validation failed' instead of
'Cancelled'.

The individual notification page for a letter which has failed
validation has not been changed since this already has a description
(letter has content outside the printable area).
This commit is contained in:
Katie Smith
2019-01-07 12:02:24 +00:00
parent 8b39bc14d1
commit bb7e9726d3
3 changed files with 6 additions and 5 deletions

View File

@@ -602,10 +602,10 @@ def test_big_numbers_and_search_dont_show_for_letters(
('sms', 'delivered', 'Delivered 27 September at 5:31pm', True),
('letter', 'delivered', '27 September at 5:30pm', True),
('letter', 'permanent-failure', 'Cancelled 27 September at 5:31pm', False),
('letter', 'validation-failed', 'Cancelled 27 September at 5:30pm', False),
('letter', 'validation-failed', 'Validation failed 27 September at 5:30pm', False),
]
)
def test_sending_status_hint_does_not_include_status_for_letters(
def test_sending_status_hint_displays_correctly_on_notifications_page(
client_request,
service_one,
active_user_with_permissions,