From cca94e956b18cce9e70029502a5ab863456b9603 Mon Sep 17 00:00:00 2001
From: Rebecca Law
Date: Wed, 14 Jul 2021 09:54:28 +0100
Subject: [PATCH] Update content
---
app/templates/partials/jobs/status.html | 7 +++++--
tests/app/main/views/test_jobs.py | 6 +++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/app/templates/partials/jobs/status.html b/app/templates/partials/jobs/status.html
index e54d0dec7..94be44736 100644
--- a/app/templates/partials/jobs/status.html
+++ b/app/templates/partials/jobs/status.html
@@ -21,8 +21,11 @@
{% endif %}
{% if job.status == 'sending limits exceeded'%}
-
- You have exceeded your daily sending limits. You can upload your CSV tomorrow or contact the GOV.UK Notify team
+
+ Notify cannot send these messages because you have reached your daily limit. You can only send {{ current_service.message_limit|format_thousands }} messages per day.
+
+
+ Upload this spreadsheet again tomorrow or contact the GOV.UK Notify team to raise the limit.
{% endif %}
diff --git a/tests/app/main/views/test_jobs.py b/tests/app/main/views/test_jobs.py
index 1892a2290..92a3c001e 100644
--- a/tests/app/main/views/test_jobs.py
+++ b/tests/app/main/views/test_jobs.py
@@ -236,8 +236,12 @@ def test_should_show_job_with_sending_limit_exceeded_status(
service_id=service_one['id'],
job_id=fake_uuid,
)
+
assert normalize_spaces(page.select('main p')[1].text) == (
- "You have exceeded your daily sending limits. You can upload your CSV tomorrow or contact the GOV.UK Notify team"
+ "Notify cannot send these messages because you have reached your daily limit. You can only send 1,000 messages per day." # noqa
+ )
+ assert normalize_spaces(page.select('main p')[2].text) == (
+ "Upload this spreadsheet again tomorrow or contact the GOV.UK Notify team to raise the limit."
)