| 12345678910111213141516171819202122232425 |
- {
- "name": "verify-baseline-if-condition",
- "nodes": [
- {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
- {"id": "n2", "name": "Fixture", "type": "code", "position": {"x": 0, "y": 100},
- "config": {"code": "return { status: 'paid', amount: 42 };"}},
- {"id": "n3", "name": "If", "type": "if-condition", "position": {"x": 0, "y": 200},
- "config": {"conditions": [{"field": "data.result.status", "operator": "equals", "value": "paid"}], "combineWith": "and"}},
- {"id": "n4", "name": "OnTrue", "type": "code", "position": {"x": -100, "y": 300},
- "config": {"code": "return { marker: 'true-branch' };"}},
- {"id": "n5", "name": "OnFalse", "type": "code", "position": {"x": 100, "y": 300},
- "config": {"code": "return { marker: 'false-branch' };"}}
- ],
- "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": "completed", "output": {"result": true, "_activeBranch": "true"}},
- "n4": {"status": "completed", "output": {"result": {"marker": "true-branch"}}}
- },
- "expectMissing": ["n5"]
- }
|