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

Maestro
appId: com.acme.shop---- launchApp- tapOn:    id: "email"- inputText: "dana@example.com"- tapOn: "Sign in"- assertVisible: "Welcome back"
Squiggle
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

MaestroSquiggle
tapOntap, 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 · longPressOndoubleTap · longPress
inputTexttype: { into: <selector>, value: … }, or inputText: with the same body. inputText: "text" on its own doesn’t load
assertVisible · assertNotVisibleAccepted with a selector mapping, or assert: { visible: … }
extendedWaitUntilwaitFor: { visible: … } or { notVisible: … }
waitForAnimationToEndwaitFor: { 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
scrollscroll: { direction: down } (direction is required)
scrollUntilVisibleThe same name
launchApp (clearState)launchApp: { clearState: true }
stopApp · back · pressKey · openLinkThe same names
runFlow · repeat · retry · when · optionalThe same names
labelnote. 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 · tagsThe same keys, in the flow header
indexindex (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, pasteText and clearKeychain
  • assertWithAI, assertNoDefectsWithAI, extractTextWithAI and assertScreenshot
  • hideKeyboard in a macOS app
  • On iOS and macOS: travel, setOrientation, setAirplaneMode, toggleAirplaneMode, takeScreenshot, startRecording, stopRecording, runScript and evalScript. 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). Use within to look inside another control.
  • containsChild and the enabled state matcher. (checked, selected and expanded are accepted beside a selector.)
  • assertTrue. Use one of Squiggle’s asserts instead.
  • onFlowStart and onFlowComplete. Use prerequisite for 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).