| 123456789101112131415161718192021222324252627 |
- {
- "name": "verify-if-condition-unresolved-path-fails",
- "nodes": [
- {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
- {"id": "n2", "name": "Params", "type": "set-fields", "position": {"x": 0, "y": 100},
- "config": {"mode": "keep", "fields": [{"name": "generate", "value": "{{true}}"}]}},
- {"id": "n3", "name": "Should Generate", "type": "if-condition", "position": {"x": 0, "y": 200},
- "config": {"conditions": [{"field": "data.result.generate", "operator": "is_true", "value": ""}], "combineWith": "and"}},
- {"id": "n4", "name": "OnTrue", "type": "code", "position": {"x": -100, "y": 300},
- "config": {"code": "return { marker: 'should not run' };"}},
- {"id": "n5", "name": "OnFalse", "type": "code", "position": {"x": 100, "y": 300},
- "config": {"code": "return { marker: 'should not run' };"}}
- ],
- "connections": [
- {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"},
- {"sourceNodeId": "n2", "sourceOutput": "main", "targetNodeId": "n3", "targetInput": "data"},
- {"sourceNodeId": "n3", "sourceOutput": "true", "targetNodeId": "n4", "targetInput": "data"},
- {"sourceNodeId": "n3", "sourceOutput": "false", "targetNodeId": "n5", "targetInput": "data"}
- ],
- "expect": {
- "n3": {
- "status": "failed",
- "errorContains": "nothing found at \"data.result.generate\""
- }
- },
- "expectMissing": ["n4", "n5"]
- }
|