mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 11:24:10 -04:00
Update AddGPOrganisationForm with new fields
Changes its StingFields to GovukTextInputFields. Includes changes to templates that use this form and associated tests.
This commit is contained in:
@@ -1061,7 +1061,7 @@ class AddGPOrganisationForm(StripWhitespaceForm):
|
||||
),
|
||||
)
|
||||
|
||||
name = StringField(
|
||||
name = GovukTextInputField(
|
||||
'What’s your practice called?',
|
||||
)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
{% call conditional_radio_panel('custom-organisation-name') %}
|
||||
{{ textbox(form.name) }}
|
||||
{{ form.name }}
|
||||
{% endcall %}
|
||||
{{ page_footer('Continue') }}
|
||||
{% endcall %}
|
||||
|
||||
@@ -358,7 +358,7 @@ def test_validation_of_gps_creating_organisations(
|
||||
_data=data,
|
||||
_expected_status=200,
|
||||
)
|
||||
assert normalize_spaces(page.select_one('.error-message').text) == expected_error
|
||||
assert expected_error in page.select_one('.govuk-error-message, .error-message').text
|
||||
|
||||
|
||||
def test_nhs_local_assigns_to_selected_organisation(
|
||||
|
||||
Reference in New Issue
Block a user