mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-11 07:33:36 -05:00
notify-300 change error message to show total message limit (#489)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
</p>
|
||||
{% if job.status == 'sending limits exceeded'%}
|
||||
<p class="govuk-error-message">
|
||||
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.
|
||||
Notify cannot send these messages because you have reached a limit. You can only send {{ current_service.message_limit|format_thousands }} messages per day and {{ 250000|format_thousands }} messages in total.
|
||||
</p>
|
||||
<p class="govuk-error-message govuk-!-margin-bottom-6">
|
||||
Upload this spreadsheet again tomorrow or <a class="govuk-link" href="https://www.notifications.service.gov.uk/support">contact the U.S. Notify team</a> to raise the limit.
|
||||
|
||||
@@ -230,7 +230,7 @@ def test_should_show_job_with_sending_limit_exceeded_status(
|
||||
)
|
||||
|
||||
assert normalize_spaces(page.select('main p')[1].text) == (
|
||||
"Notify cannot send these messages because you have reached your daily limit. You can only send 1,000 messages per day." # noqa
|
||||
"Notify cannot send these messages because you have reached a limit. You can only send 1,000 messages per day and 250,000 messages in total." # noqa
|
||||
)
|
||||
assert normalize_spaces(page.select('main p')[2].text) == (
|
||||
"Upload this spreadsheet again tomorrow or contact the U.S. Notify team to raise the limit."
|
||||
|
||||
Reference in New Issue
Block a user