diff --git a/app/templates/views/notifications.html b/app/templates/views/notifications.html index 3be1a0792..6b7d30d29 100644 --- a/app/templates/views/notifications.html +++ b/app/templates/views/notifications.html @@ -91,7 +91,7 @@

{% endcall %} - {{ text_field(item.status|capitalize|replace('-', ' ')) }} + {{ text_field(item.status|format_notification_status) }} {% call field(align='right') %} {{ item.updated_at|format_datetime_short }} diff --git a/tests/__init__.py b/tests/__init__.py index d78aaec33..bd0265812 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -159,7 +159,7 @@ def notification_json(service_id, job=None, template=None, to='07123456789', - status='sent', + status='delivered', sent_at=None, created_at=None, updated_at=None, diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py index ff0de4afe..5e4007fb4 100644 --- a/tests/app/main/views/test_jobs.py +++ b/tests/app/main/views/test_jobs.py @@ -47,7 +47,7 @@ def test_should_show_page_for_one_job( content = response.get_data(as_text=True) assert "{}: Your vehicle tax is about to expire".format(service_one['name']) in content assert file_name in content - assert "Sent at 11:10" in content + assert "Delivered at 11:10" in content def test_should_show_updates_for_one_job_as_json(