Added a test for allowing periods in field ids

This commit is contained in:
mike cullerton 2021-02-15 16:28:21 -05:00
parent ed6218028c
commit 34700568ee
1 changed files with 11 additions and 0 deletions

View File

@ -12,3 +12,14 @@ class TestFormFieldName(BaseTest):
self.assertEqual(json_data[0]['message'],
'When populating all fields ... Invalid Field name: "user-title". A field ID must begin '
'with a letter, and can only contain letters, numbers, and "_"')
def test_form_field_name_with_period(self):
workflow = self.create_workflow('workflow_form_field_name')
workflow_api = self.get_workflow_api(workflow)
first_task = workflow_api.next_task
self.complete_form(workflow_api, first_task, {})
workflow_api = self.get_workflow_api(workflow)
second_task = workflow_api.next_task
self.assertEqual('me.name', second_task.form['fields'][1]['id'])