Convert radios on add org page

Changes OrganisationCrownStatusForm.crown_status.

This also effects NewOrganisationForm, which
inherits from OrganisationCrownStatusForm.

Because of that this commit also updates the
template used for the edit org crown status page,
which uses NewOrganisationForm for its form.
This commit is contained in:
Tom Byers
2020-06-26 17:47:16 +01:00
parent 0cdbb850aa
commit b1d0d216e0
4 changed files with 8 additions and 12 deletions

View File

@@ -155,11 +155,11 @@ def test_create_new_organisation_validates(
)
assert [
(error['data-error-label'], normalize_spaces(error.text))
for error in page.select('.govuk-error-message, .error-message')
for error in page.select('.govuk-error-message')
] == [
('name', 'Error: Cannot be empty'),
('organisation_type', 'Select the type of organisation'),
('crown_status', 'Select whether this organisation is a crown body'),
('organisation_type', 'Error: Select the type of organisation'),
('crown_status', 'Error: Select whether this organisation is a crown body'),
]
assert mock_create_organisation.called is False