[ADF-4843] - Automate more manual test cases for visibility chaining … (#5014)

* [ADF-4843] - Automate more manual test cases for visibility chaining in ADF

* fix lint
This commit is contained in:
Silviu Popa
2019-08-30 13:51:56 +03:00
committed by Denys Vuika
parent 52af042450
commit a6ee26b35b
3 changed files with 747 additions and 211 deletions

View File

@@ -16,271 +16,271 @@
*/
/* tslint:disable */
export const checkboxVisibilityForm = `{
"formRepresentation": {
"id": "form-fb9245f6-1132-47bd-b0b3-823bb85002da",
"name": "test",
"description": "",
"version": 0,
"standAlone": true,
"formDefinition": {
"tabs": [],
"fields": [
export const checkboxVisibilityFormJson = {
formRepresentation: {
id: 'form-fb9245f6-1132-47bd-b0b3-823bb85002da',
name: 'test',
description: '',
version: 0,
standAlone: true,
formDefinition: {
tabs: [],
fields: [
{
"id": "f3445185-b9af-41f7-a836-3b5712abeb0f",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
id: 'f3445185-b9af-41f7-a836-3b5712abeb0f',
name: 'Label',
type: 'container',
tab: null,
numberOfColumns: 2,
fields: {
1: [
{
"id": "CheckboxFieldField",
"name": "CheckboxFieldField",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "field",
"leftValue": "textOne",
"operator": "==",
"rightValue": "textTwo",
"rightType": "field",
"nextConditionOperator": "",
"nextCondition": null
id: 'CheckboxFieldField',
name: 'CheckboxFieldField',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'field',
leftValue: 'textOne',
operator: '==',
rightValue: 'textTwo',
rightType: 'field',
nextConditionOperator: '',
nextCondition: null
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "CheckboxFieldVariable",
"name": "CheckboxFieldVariable",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "field",
"leftValue": "textOne",
"operator": "==",
"rightValue": "33c60b43-2d44-4f25-bdc4-62b34ae11b43",
"rightType": "variable",
"nextConditionOperator": ""
id: 'CheckboxFieldVariable',
name: 'CheckboxFieldVariable',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'field',
leftValue: 'textOne',
operator: '==',
rightValue: '33c60b43-2d44-4f25-bdc4-62b34ae11b43',
rightType: 'variable',
nextConditionOperator: ''
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "CheckboxFieldValue",
"name": "CheckboxFieldValue",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "field",
"leftValue": "textOne",
"operator": "==",
"rightValue": "showCheckbox",
"rightType": "value",
"nextConditionOperator": "",
"nextCondition": null
id: 'CheckboxFieldValue',
name: 'CheckboxFieldValue',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'field',
leftValue: 'textOne',
operator: '==',
rightValue: 'showCheckbox',
rightType: 'value',
nextConditionOperator: '',
nextCondition: null
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "CheckboxVariableValue",
"name": "CheckboxVariableValue",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "variable",
"leftValue": "33c60b43-2d44-4f25-bdc4-62b34ae11b43",
"operator": "==",
"rightValue": "showCheckbox",
"rightType": "value",
"nextConditionOperator": "",
"nextCondition": null
id: 'CheckboxVariableValue',
name: 'CheckboxVariableValue',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'variable',
leftValue: '33c60b43-2d44-4f25-bdc4-62b34ae11b43',
operator: '==',
rightValue: 'showCheckbox',
rightType: 'value',
nextConditionOperator: '',
nextCondition: null
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "CheckboxVariableVariable",
"name": "CheckboxVariableVariable",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "variable",
"leftValue": "33c60b43-2d44-4f25-bdc4-62b34ae11b43",
"operator": "==",
"rightValue": "0e67eb99-46f7-424e-9a78-6df0faa5844d",
"rightType": "variable",
"nextConditionOperator": "",
"nextCondition": null
id: 'CheckboxVariableVariable',
name: 'CheckboxVariableVariable',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'variable',
leftValue: '33c60b43-2d44-4f25-bdc4-62b34ae11b43',
operator: '==',
rightValue: '0e67eb99-46f7-424e-9a78-6df0faa5844d',
rightType: 'variable',
nextConditionOperator: '',
nextCondition: null
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "CheckboxVariableField",
"name": "CheckboxVariableField",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "variable",
"leftValue": "33c60b43-2d44-4f25-bdc4-62b34ae11b43",
"operator": "==",
"rightValue": "textOne",
"rightType": "field",
"nextConditionOperator": "",
"nextCondition": null
id: 'CheckboxVariableField',
name: 'CheckboxVariableField',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'variable',
leftValue: '33c60b43-2d44-4f25-bdc4-62b34ae11b43',
operator: '==',
rightValue: 'textOne',
rightType: 'field',
nextConditionOperator: '',
nextCondition: null
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
"2": [
2: [
{
"id": "textOne",
"name": "textOne",
"type": "text",
"required": false,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"regexPattern": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
id: 'textOne',
name: 'textOne',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "textTwo",
"name": "textTwo",
"type": "text",
"required": false,
"colspan": 1,
"placeholder": null,
"minLength": 0,
"maxLength": 0,
"regexPattern": null,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
id: 'textTwo',
name: 'textTwo',
type: 'text',
required: false,
colspan: 1,
placeholder: null,
minLength: 0,
maxLength: 0,
regexPattern: null,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
]
}
}
],
"outcomes": [],
"metadata": {},
"variables": [
outcomes: [],
metadata: {},
variables: [
{
"id": "33c60b43-2d44-4f25-bdc4-62b34ae11b43",
"name": "varString1",
"type": "string",
"value": "showCheckbox"
id: '33c60b43-2d44-4f25-bdc4-62b34ae11b43',
name: 'varString1',
type: 'string',
value: 'showCheckbox'
},
{
"id": "0e67eb99-46f7-424e-9a78-6df0faa5844d",
"name": "varString2",
"type": "string",
"value": "showCheckbox"
id: '0e67eb99-46f7-424e-9a78-6df0faa5844d',
name: 'varString2',
type: 'string',
value: 'showCheckbox'
}
]
}
}
}`;
};
export const multipleCheckboxVisibilityForm = `{
"formRepresentation": {
"id": "form-589a5b5d-da10-4af7-a5be-7dad2482dc19",
"name": "newtestform",
"description": "",
"version": 0,
"standAlone": true,
"formDefinition": {
"tabs": [],
"fields": [
export const multipleCheckboxVisibilityFormJson = {
formRepresentation: {
id: 'form-589a5b5d-da10-4af7-a5be-7dad2482dc19',
name: 'newtestform',
description: '',
version: 0,
standAlone: true,
formDefinition: {
tabs: [],
fields: [
{
"id": "438a9089-2641-498d-8e84-ffad51ea8379",
"name": "Label",
"type": "container",
"tab": null,
"numberOfColumns": 2,
"fields": {
"1": [
id: '438a9089-2641-498d-8e84-ffad51ea8379',
name: 'Label',
type: 'container',
tab: null,
numberOfColumns: 2,
fields: {
1: [
{
"id": "Checkbox1",
"name": "Checkbox1",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": {
"leftType": "field",
"leftValue": "Checkbox2",
"operator": "!=",
"rightValue": "Checkbox3",
"rightType": "field",
"nextConditionOperator": "",
"nextCondition": null
id: 'Checkbox1',
name: 'Checkbox1',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: {
leftType: 'field',
leftValue: 'Checkbox2',
operator: '!=',
rightValue: 'Checkbox3',
rightType: 'field',
nextConditionOperator: '',
nextCondition: null
},
"params": {
"existingColspan": 1,
"maxColspan": 2
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "Checkbox2",
"name": "Checkbox2",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
id: 'Checkbox2',
name: 'Checkbox2',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
},
{
"id": "Checkbox3",
"name": "Checkbox3",
"type": "boolean",
"required": false,
"colspan": 1,
"visibilityCondition": null,
"params": {
"existingColspan": 1,
"maxColspan": 2
id: 'Checkbox3',
name: 'Checkbox3',
type: 'boolean',
required: false,
colspan: 1,
visibilityCondition: null,
params: {
existingColspan: 1,
maxColspan: 2
}
}
],
"2": []
2: []
}
}
],
"outcomes": [],
"metadata": {},
"variables": []
outcomes: [],
metadata: {},
variables: []
}
}
}`;
};