|
|
@@ -0,0 +1,29 @@
|
|
|
+{
|
|
|
+ "name": "verify-single-node-marker-targeted",
|
|
|
+ "nodes": [
|
|
|
+ {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
|
|
|
+ {"id": "items", "name": "Items", "type": "code", "position": {"x": 0, "y": 100},
|
|
|
+ "config": {"code": "return { items: ['a', 'b', 'c'] };"}},
|
|
|
+ {"id": "loop", "name": "Loop", "type": "loop", "position": {"x": 0, "y": 200},
|
|
|
+ "config": {"inputField": "data.result.items"}},
|
|
|
+ {"id": "work", "name": "Work", "type": "set-fields", "position": {"x": 0, "y": 300},
|
|
|
+ "config": {"mode": "only-set", "fields": [{"name": "seen", "value": "{{loop.item}}"}]}}
|
|
|
+ ],
|
|
|
+ "connections": [
|
|
|
+ {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "items", "targetInput": "data"},
|
|
|
+ {"sourceNodeId": "items", "sourceOutput": "main", "targetNodeId": "loop", "targetInput": "data"},
|
|
|
+ {"sourceNodeId": "loop", "sourceOutput": "loop", "targetNodeId": "work", "targetInput": "data"},
|
|
|
+ {"sourceNodeId": "work", "sourceOutput": "main", "targetNodeId": "loop", "targetInput": "data"}
|
|
|
+ ],
|
|
|
+ "trigger": {"_targetNodeId": "work"},
|
|
|
+ "expect": {
|
|
|
+ "work": {"status": "completed"}
|
|
|
+ },
|
|
|
+ "expectCounts": {
|
|
|
+ "work": 1
|
|
|
+ },
|
|
|
+ "expectExecution": {
|
|
|
+ "status": "completed",
|
|
|
+ "singleNodeTarget": "work"
|
|
|
+ }
|
|
|
+}
|