Convert SearchFields to GovukSearchFields

Changes those fields in the following forms:
- SearchByNameForm
- SearchUsersByEmailForm
- SearchUsersForm
- SearchNotificationsForm

Includes changes to templates that use this form
and associated tests.
This commit is contained in:
Tom Byers
2020-08-07 10:16:24 +01:00
parent f95d57cfde
commit d21b9475ba
11 changed files with 37 additions and 44 deletions

View File

@@ -69,5 +69,5 @@ def test_find_services_by_name_validates_against_empty_search_submission(
client_request.login(platform_admin_user)
document = client_request.post('main.find_services_by_name', _data={"search": ""}, _expected_status=200)
expected_message = "You need to enter full or partial name to search by."
assert document.find('span', {'class': 'error-message'}).text.strip() == expected_message
expected_message = "Error: You need to enter full or partial name to search by."
assert document.find('span', {'class': 'govuk-error-message'}).text.strip() == expected_message