From e69da457311ffb1c355ffcdf77be71c05050039c Mon Sep 17 00:00:00 2001 From: Patrick Bertsch Date: Wed, 11 Nov 2026 01:23:32 -0600 Subject: [PATCH 1/2] test(e2e): use the documented block forms for if/else and run dart Three suites used one-line forms that the ProbeScript parser does not accept: - `if "X" appears then tap "X"` and `else see ...` on one line. The parser reads the `then` clause as a recipe call, so these suites failed with "unknown recipe call". The documented form is an indented block after `if` and after `else`. - `run dart: print(...)` on one line. The documented form puts the Dart code on the next, indented line. device/lifecycle needs `-y` (--yes) on the probe test command, because "clear app data" is a destructive operation. The run command in mobile/README.md already passes -y. A header note says so; the suite itself cannot pass the flag. Recipes are not the fix: no recipe file is missing for these failures. --- mobile/tests/advanced/conditionals.probe | 12 ++++++++---- mobile/tests/advanced/dart_escape.probe | 3 ++- mobile/tests/device/lifecycle.probe | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/mobile/tests/advanced/conditionals.probe b/mobile/tests/advanced/conditionals.probe index c2243d8..ee93727 100644 --- a/mobile/tests/advanced/conditionals.probe +++ b/mobile/tests/advanced/conditionals.probe @@ -5,8 +5,10 @@ test "A/B banner conditional" wait 1 seconds tap "Dynamic" wait 2 seconds - if "Special Offer!" appears then tap "Special Offer!" - else see "Dynamic" + if "Special Offer!" appears + tap "Special Offer!" + else + see "Dynamic" see "Dynamic" test "error dialog conditional" @@ -18,5 +20,7 @@ test "error dialog conditional" wait 2 seconds tap #trigger_error wait 1 seconds - if "Error" appears then tap "OK" - else see "Dynamic" + if "Error" appears + tap "OK" + else + see "Dynamic" diff --git a/mobile/tests/advanced/dart_escape.probe b/mobile/tests/advanced/dart_escape.probe index 5f26997..7929918 100644 --- a/mobile/tests/advanced/dart_escape.probe +++ b/mobile/tests/advanced/dart_escape.probe @@ -1,4 +1,5 @@ test "run inline dart code" restart the app wait 5 seconds - run dart: print('hello from dart') + run dart: + print('hello from dart') diff --git a/mobile/tests/device/lifecycle.probe b/mobile/tests/device/lifecycle.probe index bf7269a..229a521 100644 --- a/mobile/tests/device/lifecycle.probe +++ b/mobile/tests/device/lifecycle.probe @@ -1,3 +1,6 @@ +# Run with -y (--yes): "clear app data" is a destructive operation, and the CLI refuses it without the flag. +# The run command in mobile/README.md already passes -y. + test "restart app preserves state" @device @lifecycle restart the app From 12232e3afb9361b671ffb1974d16d505412f597e Mon Sep 17 00:00:00 2001 From: Patrick Bertsch Date: Wed, 11 Nov 2026 01:29:49 -0600 Subject: [PATCH 2/2] test(e2e): point the -y note in lifecycle.probe at the repo-root README --- mobile/tests/device/lifecycle.probe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/tests/device/lifecycle.probe b/mobile/tests/device/lifecycle.probe index 229a521..1a3857d 100644 --- a/mobile/tests/device/lifecycle.probe +++ b/mobile/tests/device/lifecycle.probe @@ -1,5 +1,5 @@ # Run with -y (--yes): "clear app data" is a destructive operation, and the CLI refuses it without the flag. -# The run command in mobile/README.md already passes -y. +# The run command in the repo-root README.md already passes -y. test "restart app preserves state" @device @lifecycle