chore: add more fixtures

This commit is contained in:
Abhishek Kumar 2026-05-08 16:28:09 +05:30
parent 5a358d4d29
commit 45a81c88e0
3 changed files with 33 additions and 6 deletions

View file

@ -0,0 +1,17 @@
{
"nodes": [
{
"id": "s1",
"type": "startCall",
"position": {"x": 0, "y": 0},
"data": {"name": "Start A", "prompt": "Greet path A.", "is_start": true}
},
{
"id": "s2",
"type": "startCall",
"position": {"x": 0, "y": 200},
"data": {"name": "Start B", "prompt": "Greet path B.", "is_start": true}
}
],
"edges": []
}

View file

@ -72,7 +72,14 @@ _SCENARIOS = [
(
"no_start_node",
["no_start_node"],
["Workflow must have exactly one start node"],
["Workflow has no start node"],
),
# Two startCall nodes — surfaced separately from no_start_node so
# the editor can show a count-specific message.
(
"multiple_start_nodes",
["multiple_start_nodes:2"],
["Workflow has 2 start nodes"],
),
]