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

@@ -363,7 +363,7 @@ def test_shows_message_when_no_notifications(
{},
{},
'Search by recipient',
'',
None,
),
(
{
@@ -371,7 +371,7 @@ def test_shows_message_when_no_notifications(
},
{},
'Search by phone number',
'',
None,
),
(
{
@@ -441,7 +441,7 @@ def test_search_recipient_form(
assert(len(recipient_inputs) == 2)
for field in recipient_inputs:
assert field['value'] == expected_search_box_contents
assert field.get("value") == expected_search_box_contents
@pytest.mark.parametrize('message_type, expected_search_box_label', [