Merge pull request #3471 from alphagov/update-permanent-failure-error-message-content

Update permanent failure error message content
This commit is contained in:
karlchillmaid
2020-06-10 17:02:27 +01:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -427,7 +427,7 @@ def format_notification_status(status, template_type):
'failed': 'Failed',
'technical-failure': 'Technical failure',
'temporary-failure': 'Phone not accepting messages right now',
'permanent-failure': 'Phone number does not exist',
'permanent-failure': 'Not delivered',
'delivered': 'Delivered',
'sending': 'Sending',
'created': 'Sending',

View File

@@ -55,7 +55,7 @@
('Sending', 'Notify has sent the message to the provider. The provider will try to deliver the message to the recipient for up to 72 hours. Notify is waiting for delivery information.'),
('Sent internationally', 'The message was sent to an international number. The mobile networks in some countries do not provide any more delivery information.'),
('Delivered', 'The message was successfully delivered. Notify will not tell you if a user has opened or read a message.'),
('Phone number does not exist', 'The provider could not deliver the message because the phone number was wrong. You should remove these phone numbers from your database. Youll still be charged for text messages to numbers that do not exist.'),
('Not delivered', 'The provider could not deliver the message. This can happen if the phone number was wrong or if the network operator rejects the message. If youre sure that these phone numbers are correct, you should <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for(".support") }}">contact us</a>. If not, you should remove them from your database. Youll still be charged for text messages that cannot be delivered.'|safe),
('Phone not accepting messages right now', 'The provider could not deliver the message. This can happen when the recipients phone is off. You can try to send the message again. Youll still be charged for text messages to phones that are not accepting messages.'),
('Technical failure', 'Your message was not sent because there was a problem between Notify and the provider. Youll have to try sending your messages again. You will not be charged for text messages that are affected by a technical failure.'),
] %}

View File

@@ -715,7 +715,7 @@ def test_big_numbers_dont_show_for_letters(
('sms', 'created', 'Sending since 27 September at 5:30pm', True),
('sms', 'sending', 'Sending since 27 September at 5:30pm', True),
('sms', 'temporary-failure', 'Phone not accepting messages right now 27 September at 5:31pm', False),
('sms', 'permanent-failure', 'Phone number does not exist 27 September at 5:31pm', False),
('sms', 'permanent-failure', 'Not delivered 27 September at 5:31pm', False),
('sms', 'delivered', 'Delivered 27 September at 5:31pm', True),
('letter', 'created', '27 September at 5:30pm', True),
('letter', 'pending-virus-check', '27 September at 5:30pm', True),

View File

@@ -23,13 +23,13 @@ from tests.conftest import (
(None, 'delivered', 'Delivered'),
(None, 'failed', 'Failed'),
(None, 'temporary-failure', 'Phone not accepting messages right now'),
(None, 'permanent-failure', 'Phone number does not exist'),
(None, 'permanent-failure', 'Not delivered'),
(None, 'technical-failure', 'Technical failure'),
('team', 'delivered', 'Delivered'),
('live', 'delivered', 'Delivered'),
('test', 'sending', 'Sending (test)'),
('test', 'delivered', 'Delivered (test)'),
('test', 'permanent-failure', 'Phone number does not exist (test)'),
('test', 'permanent-failure', 'Not delivered (test)'),
])
@pytest.mark.parametrize('user', [
create_active_user_with_permissions(),