Skip to content

Commit

Permalink
[New] Or condition in rendering test
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Mar 23, 2021
1 parent cd8931a commit c77867f
Showing 1 changed file with 109 additions and 3 deletions.
112 changes: 109 additions & 3 deletions test/rendering/form1.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"@type" : "@id",
"@id" : "http://onto.fel.cvut.cz/ontologies/form/has-answer-origin"
},
"has-sub-condition" : {
"@type" : "@id",
"@id" : "http://onto.fel.cvut.cz/ontologies/form/has-sub-condition"
},
"aviation-safety" : "http://onto.fel.cvut.cz/ontologies/aviation-safety/",
"has-origin-type" : {
"@type" : "@id",
Expand Down Expand Up @@ -124,6 +128,19 @@
}
},
"@graph" : [
{
"@id" : "ex:sc--multiplicity-in-accept-states-condition",
"@type" : "form:condition",
"has-tested-question" : "tested-question-8153",
"accepts-answer-value" : [
{
"@id" : "ex:accepted-value-1"
},
{
"@id" : "ex:accepted-value-2"
}
]
},
{
"@id" : "ex:sc--ast-accepts-answer-value",
"@type" : "form:condition",
Expand All @@ -132,6 +149,34 @@
"@id" : "ex:accepted-value-4208994"
} ]
},
{
"@id" : "ex:cc--or--condition-1",
"@type" : "form:condition",
"has-tested-question" : "tested-question-1-8535",
"accepts-answer-value" : [ {
"@id" : "ex:accepted-value-4208994"
} ]
},
{
"@id" : "ex:cc--or--condition-2",
"@type" : "form:condition",
"has-tested-question" : "tested-question-2-7291",
"accepts-answer-value" : [ {
"@id" : "ex:accepted-value-4208994"
} ]
},
{
"@id" : "ex:cc--or--condition",
"@type" : "form:or-condition",
"has-sub-condition" : [
{
"@id" : "ex:cc--or--condition-1"
},
{
"@id" : "ex:cc--or--condition-2"
}
]
},
{
"@type" : "doc:answer",
"form:has-answer-hash" : "520f19b537850b01e9ba59538fe70306347982cf",
Expand Down Expand Up @@ -843,6 +888,7 @@
},
"@id" : "hidden-question-1755",
"has-layout-class" : [],
"is-relevant-if" : "ex:cc--or--condition",
"form:has-preceding-question" : {
"@id" : "tested-question-2-7291"
},
Expand Down Expand Up @@ -884,6 +930,7 @@
"@type" : "doc:question",
"has-layout-class" : [],
"@id" : "hidden-question-3949",
"is-relevant-if": "ex:sc--multiplicity-in-accept-states-condition",
"label" : {
"@language" : "en",
"@value" : "Hidden question"
Expand Down Expand Up @@ -2594,6 +2641,20 @@
"@value" : "accepted value"
}
},
{
"@id" : "ex:accepted-value-1",
"label" : {
"@language" : "en",
"@value" : "accepted value 1"
}
},
{
"@id" : "ex:accepted-value-2",
"label" : {
"@language" : "en",
"@value" : "accepted value 2"
}
},
{
"label" : {
"@language" : "en",
Expand Down Expand Up @@ -2676,12 +2737,26 @@
},
{
"@id" : "tested-question-1-8535",
"has-possible-value" : [
{
"@id" : "ex:accepted-value-4208994"
},
{
"@id" : "option-6989605"
},
{
"@id" : "option-5194877"
},
{
"@id" : "option-5858615"
}
],
"label" : {
"@language" : "en",
"@value" : "Tested question 1"
},
"has_related_question" : [],
"has-layout-class" : [],
"has-layout-class" : "type-ahead",
"@type" : "doc:question"
},
{
Expand Down Expand Up @@ -2713,8 +2788,22 @@
"@id" : "tested-question-1-8535"
},
"@type" : "doc:question",
"has-layout-class" : [],
"has-layout-class" : "type-ahead",
"@id" : "tested-question-2-7291",
"has-possible-value" : [
{
"@id" : "ex:accepted-value-4208994"
},
{
"@id" : "option-6989605"
},
{
"@id" : "option-5194877"
},
{
"@id" : "option-5858615"
}
],
"label" : {
"@value" : "Tested question 2",
"@language" : "en"
Expand Down Expand Up @@ -2784,8 +2873,25 @@
"@language" : "en",
"@value" : "Tested question"
},
"has-possible-value" : [
{
"@id" : "ex:accepted-value-1"
},
{
"@id" : "ex:accepted-value-2"
},
{
"@id" : "option-6989605"
},
{
"@id" : "option-5194877"
},
{
"@id" : "option-5858615"
}
],
"has_related_question" : [],
"has-layout-class" : [],
"has-layout-class" : "type-ahead",
"@type" : "doc:question"
},
{
Expand Down

0 comments on commit c77867f

Please sign in to comment.