mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user