mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 14:29:49 -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>
|
</p>
|
||||||
{% elif notification_status == 'validation-failed' %}
|
{% elif notification_status == 'validation-failed' %}
|
||||||
<p class="notification-status-cancelled">
|
<p class="notification-status-cancelled">
|
||||||
Validation failed – {{ message.title | safe }}. {{ message.detail | safe }}
|
Validation failed. {{ message.detail | safe }}
|
||||||
</p>
|
</p>
|
||||||
{% elif notification_status == 'technical-failure' %}
|
{% elif notification_status == 'technical-failure' %}
|
||||||
<p class="notification-status-cancelled">
|
<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
|
error_message = page.find('p', class_='notification-status-cancelled').text
|
||||||
assert normalize_spaces(error_message) == \
|
assert normalize_spaces(error_message) == (
|
||||||
"Validation failed – Your content is outside the printable area. " \
|
'Validation failed. You need to edit page 1.'
|
||||||
"You need to edit page 1.Files must meet our letter specification."
|
'Files must meet our letter specification.'
|
||||||
|
)
|
||||||
|
|
||||||
assert not page.select('p.notification-status')
|
assert not page.select('p.notification-status')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user