diff --git a/app/templates/views/notifications/notification.html b/app/templates/views/notifications/notification.html index f9ffe85ef..12663f3fc 100644 --- a/app/templates/views/notifications/notification.html +++ b/app/templates/views/notifications/notification.html @@ -44,7 +44,7 @@

{% elif notification_status == 'validation-failed' %}

- Validation failed – {{ message.title | safe }}. {{ message.detail | safe }} + Validation failed. {{ message.detail | safe }}

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

diff --git a/tests/app/main/views/test_notifications.py b/tests/app/main/views/test_notifications.py index 9e1c1bcdf..69e1da316 100644 --- a/tests/app/main/views/test_notifications.py +++ b/tests/app/main/views/test_notifications.py @@ -331,9 +331,10 @@ def test_notification_page_shows_validation_failed_precompiled_letter( ) error_message = page.find('p', class_='notification-status-cancelled').text - assert normalize_spaces(error_message) == \ - "Validation failed – Your content is outside the printable area. " \ - "You need to edit page 1.Files must meet our letter specification." + assert normalize_spaces(error_message) == ( + 'Validation failed. You need to edit page 1.' + 'Files must meet our letter specification.' + ) assert not page.select('p.notification-status')