Coming from Maestro
For AI agents: this page is Markdown at https://squiggle.sh/docs/flows/maestro.md. Every docs page is listed at https://squiggle.sh/llms.txt, and all of them are one file at https://squiggle.sh/llms-full.txt.
Squiggle flows are close to Maestro's, but a Maestro file doesn't run as it is. Most commands have a direct equivalent with a different name, and a few don't run at all.
The same flow, both ways
appId: com.acme.shop---- launchApp- tapOn: id: "email"- inputText: "dana@example.com"- tapOn: "Sign in"- assertVisible: "Welcome back"flow: sign inappId: com.acme.shopsteps: - launchApp - type: { into: { testID: email }, value: dana@example.com } - tap: { text: Sign in } - assert: { visible: { text: Welcome back } }A Squiggle flow is one YAML document: a flow name, the header keys, then steps. There’s no --- separator.
Commands
| Maestro | Squiggle |
|---|---|
tapOn | tap, with a selector: { text: … } or { testID: … }. Maestro reads text as a regular expression that must match the whole text. In Squiggle, text is plain text, so write a pattern as textMatches beside another field, with ^ and $ so it still matches the whole text, such as { component: OrderRow, textMatches: "^Order #10[0-9]{2}$" } |
tapOn: { id: … } | tap: { testID: … } |
doubleTapOn · longPressOn | doubleTap · longPress |
inputText | type: { into: <selector>, value: … }, or inputText: with the same body. inputText: "text" on its own doesn’t load |
assertVisible · assertNotVisible | Accepted with a selector mapping, or assert: { visible: … } |
extendedWaitUntil | waitFor: { visible: … } or { notVisible: … } |
waitForAnimationToEnd | waitFor: { animationIdle: true } |
swipe: { direction } | swipe: { direction }, with amount in points (200 by default) |
swipe: { start, end } | drag: { from: "50%, 50%", path: [{ to: "50%, 20%" }] }, or a swipe with a selector or point, direction and amount |
scroll | scroll: { direction: down } (direction is required) |
scrollUntilVisible | The same name |
launchApp (clearState) | launchApp: { clearState: true } |
stopApp · back · pressKey · openLink | The same names |
runFlow · repeat · retry · when · optional | The same names |
label | note. A label beside another selector, as in tap: { testID: …, label: … }, still names the step; on its own or beside role, label is the accessibility label to match |
appId · env · tags | The same keys, in the flow header |
index | index (from 0), or nth (from 1) |
What Squiggle doesn’t run
These are read without an error and reported as unsupported in the run. They never count as passed, so a moved suite shows exactly which parts aren’t tested:
eraseText,copyTextFrom,pasteTextandclearKeychainassertWithAI,assertNoDefectsWithAI,extractTextWithAIandassertScreenshothideKeyboardin a macOS app- On iOS and macOS:
travel,setOrientation,setAirplaneMode,toggleAirplaneMode,takeScreenshot,startRecording,stopRecording,runScriptandevalScript. On a React web app they run: see the flow reference.
addMedia runs on the iOS simulator: it adds photos and videos to the photo library and any other file to On My iPhone. On a React web app it hands the files to the page’s next file chooser. setLocation and setPermissions run on the iOS simulator and on a React web app; to answer a permission prompt the way a person would instead, see Pickers, sheets and system alerts.
These stop the flow from loading, with an error that names them:
- Position selectors (
below,above,leftOf,rightOf). Usewithinto look inside another control. containsChildand theenabledstate matcher. (checked,selectedandexpandedare accepted beside a selector.)assertTrue. Use one of Squiggle’s asserts instead.onFlowStartandonFlowComplete. Useprerequisitefor setup (see Repeatable flows).
What you get on top
A moved control heals instead of failing (see Healing), and asserts can check what the app did, not only what it shows: renders, dropped frames, store and query state, and logged events (see Assertions).