mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-10 16:36:31 +00:00
show that hiding nested fields works as well
This commit is contained in:
parent
1247189bf8
commit
11a9e740af
@ -17,6 +17,14 @@
|
|||||||
"veryImportantFieldButOnlySometimes": {
|
"veryImportantFieldButOnlySometimes": {
|
||||||
"title": "Very important field",
|
"title": "Very important field",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"building": {
|
||||||
|
"properties": {
|
||||||
|
"floor": {
|
||||||
|
"title": "Floor",
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<bpmn:incoming>Flow_1my9ag5</bpmn:incoming>
|
<bpmn:incoming>Flow_1my9ag5</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_0b04rbg</bpmn:outgoing>
|
<bpmn:outgoing>Flow_0b04rbg</bpmn:outgoing>
|
||||||
<bpmn:script>awesome_color_options = [{"value": "blue", "label": "Blue"}, {"value": "green", "label": "Green"}]
|
<bpmn:script>awesome_color_options = [{"value": "blue", "label": "Blue"}, {"value": "green", "label": "Green"}]
|
||||||
form_ui_hidden_fields = ["veryImportantFieldButOnlySometimes"]
|
form_ui_hidden_fields = ["veryImportantFieldButOnlySometimes", "building.floor"]
|
||||||
</bpmn:script>
|
</bpmn:script>
|
||||||
</bpmn:scriptTask>
|
</bpmn:scriptTask>
|
||||||
<bpmn:userTask id="Activity_1gqykqt" name="ask user for color">
|
<bpmn:userTask id="Activity_1gqykqt" name="ask user for color">
|
||||||
|
@ -1686,8 +1686,13 @@ class TestProcessApi(BaseTest):
|
|||||||
response.json["form_schema"]["definitions"]["Color"]["anyOf"][1]["title"]
|
response.json["form_schema"]["definitions"]["Color"]["anyOf"][1]["title"]
|
||||||
== "Green"
|
== "Green"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# if you set this in task data:
|
||||||
|
# form_ui_hidden_fields = ["veryImportantFieldButOnlySometimes", "building.floor"]
|
||||||
|
# you will get this ui schema:
|
||||||
assert response.json["form_ui_schema"] == {
|
assert response.json["form_ui_schema"] == {
|
||||||
"veryImportantFieldButOnlySometimes": {"ui:widget": "hidden"}
|
"building": {"floor": {"ui:widget": "hidden"}},
|
||||||
|
"veryImportantFieldButOnlySometimes": {"ui:widget": "hidden"},
|
||||||
}
|
}
|
||||||
|
|
||||||
def test_process_instance_list_with_default_list(
|
def test_process_instance_list_with_default_list(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user