mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Show the first line of the address from the to field.
Now persisting the address to the "to" field of the Notification, after the notification has been validated. If the letter is pending validation, then "Checking..." will appear as the identifier for the letter. If the letter has passed validation, then the first line of the address (now persisted in the "to" field) will be displayed, with the client reference underneath. If the letter has failed validation the "Provided as PDF" will show be displayed, which is now the initial value of the "to" field.
This commit is contained in:
@@ -65,7 +65,8 @@ def test_send_precompiled_letter(mocker, logged_in_client, active_user_with_perm
|
||||
'abcd-1234',
|
||||
'my_file.pdf',
|
||||
'file-ID',
|
||||
'second'
|
||||
'second',
|
||||
'Bugs Bunny, 12 Hole Avenue, Looney Town'
|
||||
)
|
||||
mock_post.assert_called_once_with(
|
||||
url='/service/abcd-1234/send-pdf-letter',
|
||||
@@ -74,6 +75,7 @@ def test_send_precompiled_letter(mocker, logged_in_client, active_user_with_perm
|
||||
'file_id': 'file-ID',
|
||||
'created_by': active_user_with_permissions['id'],
|
||||
'postage': 'second',
|
||||
'recipient_address': 'Bugs Bunny, 12 Hole Avenue, Looney Town',
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user