mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-29 21:51:00 -04:00
Remove the title from the short errors
This undoes some of the temporary work we did previously in order to ship the new ‘address is empty’ error message.
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
</p>
|
||||
{% elif notification_status == 'validation-failed' %}
|
||||
<p class="notification-status-cancelled">
|
||||
Validation failed – {{ message.title | safe }}. {{ message.detail | safe }}
|
||||
Validation failed. {{ message.detail | safe }}
|
||||
</p>
|
||||
{% elif notification_status == 'technical-failure' %}
|
||||
<p class="notification-status-cancelled">
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user