diff --git a/test/test.py b/test/test.py index d9a01e3..108fdc6 100644 --- a/test/test.py +++ b/test/test.py @@ -322,6 +322,10 @@ class WebAppTest(unittest.TestCase): f_orig = file('static/ssh_server.png', 'rb').read() self.assertEquals(f_orig, f_served) + def testHiddenField(self): + r = requests.get('http://localhost:8002/form?form_name=hidden_field', auth=self.auth_user) + self.assertIn('class="hidden"', r.text) + class WebAppSingleTest(unittest.TestCase): """ diff --git a/test/test_webapp.json b/test/test_webapp.json index c0de57f..affc8b3 100644 --- a/test/test_webapp.json +++ b/test/test_webapp.json @@ -139,6 +139,20 @@ "type": "file" } ] + }, + { + "name": "hidden_field", + "title": "Hidden field", + "description": "Hidden field", + "script": "test.sh", + "fields": [ + { + "name": "Hidden class", + "title": "This field has a 'hidden' class.", + "type": "string", + "hidden": true + } + ] } ] }