Skip to content

The agent that grows with you

test(tour): start with no steps is the built-in tour, not an error

alt-glitchdfe96faf5e7b
diff --git a/tests/tools/test_tour_tool.py b/tests/tools/test_tour_tool.py
index c0d946fcd02..7435299b507 100644
--- a/tests/tools/test_tour_tool.py
+++ b/tests/tools/test_tour_tool.py
@@ -31,7 +31,9 @@ def test_show_needs_something_to_point_at_or_say():
def test_start_validates_its_steps():
- assert "non-empty steps" in _run(action="start")["error"]
+ # No steps is the app's built-in tour; it exists only on the app surface.
+ assert "error" not in _run(action="start")
+ assert "surface='app'" in _run(action="start", surface="preview")["error"]
assert "non-empty steps" in _run(action="start", steps=[])["error"]
assert "steps[1] must be an object" in _run(action="start", steps=[{"selector": "#a"}, "nope"])["error"]
assert "steps[1] needs" in _run(action="start", steps=[{"selector": "#a"}, {}])["error"]