Skip to content

test(e2e): documented block forms for if/else and run dart; note -y for lifecycle - #6

Merged
pbertsch merged 2 commits into
mainfrom
fix/twin-suite-syntax
Nov 11, 2026
Merged

pbertsch merged 2 commits into
mainfrom
fix/twin-suite-syntax

Conversation

@pbertsch

@pbertsch pbertsch commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • conditionals.probe and dart_escape.probe use the documented block forms. The old one-line forms (if ... then ... with a one-line else, and run dart: ... on one line) are not accepted by the ProbeScript parser, so those suites failed with "unknown recipe call".
  • device/lifecycle.probe has a header note that the run needs -y (--yes), because "clear app data" is a destructive operation. The run command in the repo-root README.md already passes -y. The suite cannot pass the flag itself, so no test logic changed.
  • Adding recipe files would not fix these failures. No recipe file is missing for them.

What this PR does not cover

  • These suites do not exercise the App Tracking Transparency alert or the notification permission path. A live run on a device is still needed for that.
  • The native-twin suites (SwiftUI, Kotlin and the native-verb suites) live on their own open branches and are not changed here.

Test plan

  • Ran the three files with the probe CLI (0.26.1) on an iOS 26.5 simulator against the Flutter twin: conditionals 2 of 2, dart_escape 1 of 1, lifecycle 2 of 2 with -y.
  • Android (API 35 emulator), review run with -y: all 5 tests pass on this head. The base versions fail 3 (conditionals x2 and dart_escape, "unknown recipe call").

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.
@pbertsch
pbertsch merged commit 6d9345a into main Nov 11, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant