mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 16:28:24 -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?',
|
'What’s your practice called?',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
{% call conditional_radio_panel('custom-organisation-name') %}
|
{% call conditional_radio_panel('custom-organisation-name') %}
|
||||||
{{ textbox(form.name) }}
|
{{ form.name }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
{{ page_footer('Continue') }}
|
{{ page_footer('Continue') }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ def test_validation_of_gps_creating_organisations(
|
|||||||
_data=data,
|
_data=data,
|
||||||
_expected_status=200,
|
_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(
|
def test_nhs_local_assigns_to_selected_organisation(
|
||||||
|
|||||||
Reference in New Issue
Block a user