Repository navigation
test(e2e): documented block forms for if/else and run dart; note -y for lifecycle - #6
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
conditionals.probeanddart_escape.probeuse the documented block forms. The old one-line forms (if ... then ...with a one-lineelse, andrun dart: ...on one line) are not accepted by the ProbeScript parser, so those suites failed with "unknown recipe call".device/lifecycle.probehas a header note that the run needs-y(--yes), because "clear app data" is a destructive operation. The run command in the repo-rootREADME.mdalready passes-y. The suite cannot pass the flag itself, so no test logic changed.What this PR does not cover
Test plan
-y.-y: all 5 tests pass on this head. The base versions fail 3 (conditionals x2 and dart_escape, "unknown recipe call").