mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 10:08:25 -04:00
Explain technical failure on the notification page
This commit is contained in:
@@ -45,6 +45,11 @@
|
|||||||
<p class="notification-status-cancelled">
|
<p class="notification-status-cancelled">
|
||||||
Validation failed – content is outside the printable area
|
Validation failed – content is outside the printable area
|
||||||
</p>
|
</p>
|
||||||
|
{% elif notification_status == 'technical-failure' %}
|
||||||
|
<p class="notification-status-cancelled">
|
||||||
|
Technical failure – Notify will resend once the team have
|
||||||
|
fixed the problem
|
||||||
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>
|
<p>
|
||||||
{{ letter_print_day }}
|
{{ letter_print_day }}
|
||||||
|
|||||||
@@ -191,13 +191,26 @@ def test_notification_page_shows_page_for_letter_notification(
|
|||||||
assert mock_page_count.call_args_list[0][1]['values'] == {'name': 'Jo'}
|
assert mock_page_count.call_args_list[0][1]['values'] == {'name': 'Jo'}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('notification_status, expected_message', [
|
@pytest.mark.parametrize('notification_status, expected_message', (
|
||||||
('permanent-failure', 'Cancelled 1 January at 1:02am'),
|
(
|
||||||
('cancelled', 'Cancelled 1 January at 1:02am'),
|
'permanent-failure',
|
||||||
('validation-failed', 'Validation failed – content is outside the printable area'),
|
'Cancelled 1 January at 1:02am',
|
||||||
])
|
),
|
||||||
|
(
|
||||||
|
'cancelled',
|
||||||
|
'Cancelled 1 January at 1:02am',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'validation-failed',
|
||||||
|
'Validation failed – content is outside the printable area',
|
||||||
|
),
|
||||||
|
(
|
||||||
|
'technical-failure',
|
||||||
|
'Technical failure – Notify will resend once the team have fixed the problem',
|
||||||
|
),
|
||||||
|
))
|
||||||
@freeze_time("2016-01-01 01:01")
|
@freeze_time("2016-01-01 01:01")
|
||||||
def test_notification_page_shows_cancelled_letter(
|
def test_notification_page_shows_cancelled_or_failed_letter(
|
||||||
client_request,
|
client_request,
|
||||||
mocker,
|
mocker,
|
||||||
fake_uuid,
|
fake_uuid,
|
||||||
|
|||||||
Reference in New Issue
Block a user