diff --git a/app/utils.py b/app/utils.py index ee185f718..8c1d737af 100644 --- a/app/utils.py +++ b/app/utils.py @@ -651,7 +651,7 @@ LETTER_VALIDATION_MESSAGES = { ), }, 'not-a-real-uk-postcode': { - 'title': 'There’s a problem with the address on this letter', + 'title': 'There’s a problem with the address for this letter', 'detail': ( 'The last line of the address must be a real UK postcode.' ), diff --git a/tests/app/test_utils.py b/tests/app/test_utils.py index fd0b991f3..58c1a3079 100644 --- a/tests/app/test_utils.py +++ b/tests/app/test_utils.py @@ -483,6 +483,30 @@ def test_get_letter_validation_error_for_unknown_error(): 'Save a new copy of your file and try again.' ), ), + ( + 'address-is-empty', + None, + 'The address block is empty', + ( + 'You need to add a recipient address.' + 'Files must meet our letter specification.' + ), + ( + 'Validation failed because the address block is empty.' + 'Files must meet our letter specification.' + ), + ), + ( + 'not-a-real-uk-postcode', + None, + 'There’s a problem with the address for this letter', + ( + 'The last line of the address must be a real UK postcode.' + ), + ( + 'Validation failed because the last line of the address is not a real UK postcode.' + ), + ), ]) def test_get_letter_validation_error_for_known_errors( client_request,