Fix tests for pages using govukCheckboxField

These fields used to use govukCheckboxesField and
so stored their data in a list. They were since
migrated to govukCheckboxField, which extends
BooleanField and so keeps its data as a boolean
value.
This commit is contained in:
Tom Byers
2020-07-31 10:20:44 +01:00
parent ca9b8a8ca3
commit e266b11ee2
2 changed files with 28 additions and 26 deletions
+5 -3
View File
@@ -1101,9 +1101,11 @@ def test_user_cant_invite_themselves(
service_id=SERVICE_ONE_ID,
_data={
'email_address': active_user_with_permissions['email_address'],
'send_messages': 'y',
'manage_service': 'y',
'manage_api_keys': 'y',
'permissions_field': [
'send_messages',
'manage_service',
'manage_api_keys'
]
},
_follow_redirects=True,
_expected_status=200,