Skip to main content
mobster import maestro reads your Maestro flows and writes one Mobster check per flow, in the same order, under the same name. mobster test, mobster verify --check and the run_tests MCP tool run them. The flows are read as data: no flow runs, and no flow’s text reaches a model as an instruction. Every command you lose is named in the output. An assertion Mobster can’t judge refuses the whole flow, because a model never decides a verdict.

See what a flow becomes

A Maestro flow, .maestro/checkout.yaml:
The check mobster import maestro .maestro writes to .mobster/checks/checkout.yaml (mobster test import maestro is the long form):
The commands map one to one and keep their order. ${PROMO} comes from the flow’s env. The two TODO steps are the commands Mobster doesn’t run, and the check’s first run fills each with a model. The expectations come last, because Mobster judges them on the accessibility tree once the steps end.

Import a folder of flows

From your project folder:
PATH is a flow file or a folder. A folder is read for its top-level .yaml and .yml files. A flow in a subfolder comes in when another flow runs it with runFlow. Checks go to .mobster/checks, or to the folder you give with -o. The command exits 1 when it refused a flow and 0 otherwise. Each check starts with a comment that names the flow it came from.

Read the summary

Converted counts the commands that became steps or expectations as written, including the commands of a runFlow subflow. A command under “Needs a first run” became a TODO step. A flow with an “Unsupported” command was refused.

Import again

Import twice with the same flags and you get the same files. A check already on disk exactly as imported prints unchanged. A check that differs is kept, such as one you edit or import before without --app. Its line says kept. The first line counts it separately from imported checks:
Add --force to replace it. A kept check does not change the exit code. With --json, each check has its name and disk: written, unchanged or kept. A check that --dry-run would write has disk null. You can pass --app before the build exists. When nothing is at the path, the import prints --app build/Debug-iphonesimulator/YourApp.app doesn't exist yet: build the app before you run the checks. It still writes the checks.

Import Maestro flows in Mobster for Mac

You get this in the next release, not in Mobster for Mac 0.4.0 or Mobster CLI 0.4.4.
  1. Open your project’s page from Projects. Choose Import Maestro flows above Checks.
  2. Drop your .maestro folder on the card, or pick it with Choose folder…. You can drop one flow file too.
The picker opens in the project’s folder. Choose that folder and Mobster imports the .maestro folder inside it, which Finder hides. A folder you drop works the same way. Mobster writes checks to your project’s .mobster/checks. You get the same files as mobster import maestro .maestro writes. The card lists what came in:
A flow with steps to finish has commands Mobster can’t convert, such as runScript. Its check has a TODO step for each command. The check’s first run fills in those steps (Commands Mobster can’t run). Show in Finder on its row shows the check’s file. A flow imported in full has no row. Its checks are under Checks, as Not run yet. The app imports the way mobster import maestro does with no flags. It never replaces a check. When a check file with the same name is there already and differs, Mobster keeps it and its row says Kept. To replace it, delete the file and import again, or run mobster import maestro .maestro --force. A folder you choose or type must be inside your home folder. Drop a folder from anywhere else. For --app, --bundle, -e or --skip-unsupported, run mobster import maestro in Terminal. The page calls POST /api/projects/{id}/checks/maestro with {"path": "~/Developer/Shop/.maestro"}, or for a drop with {"files": [{"path": "checkout.yaml", "text": "..."}]}, each path inside the dropped folder. It answers what mobster import maestro --json prints, with written and refused beside it. Each check carries disk: written, unchanged or kept. Each flow’s needsFirstRun lists the commands that became TODO steps.

Run the checks

The steps are plain English, so the first run drives them with a model on your key and records the path. After a pass, later runs replay that path and call no model. A replay that drifts spends about $0.04 on one heal attempt (Replay and heals). The expectations are judged on the accessibility tree, never by a model. Add --device NAME to run them on your iPhone.

What converts

${NAME} is replaced from -e, the flow’s env, the runFlow env and the appId. A flow refused for a name with no value says which -e to pass. In inputText and openLink, a name the flow’s own env doesn’t set stays ${NAME} in the check, whether or not you pass it with -e. It is a project secret: run mobster env set NAME once, and each run fills it from the Keychain and masks it. The import prints which names to set. A check that uses a project secret runs its steps with a model every time. A typed name in lowercase, such as ${password}, is refused, because a project secret’s name is in capitals.

How text matches

Maestro matches text as a pattern against the whole text and ignores case. The check keeps that: assertVisible: "get started" becomes /^get started$/i, so it matches the label GET STARTED. A selector that is already a pattern, such as "Order #[0-9]+", is anchored the same way. An id stays exact. The match is on the element’s accessibility label. The Expo starter’s documentation link has the label Expo documentation, arrow.up.right.square, so assertVisible: "Expo documentation" fails and assertVisible: "Expo documentation.*" passes. The failure names the closest label it found.

Assertions in the middle of a flow

Mobster judges every expectation once, after the last step. A flow that asserts between actions would lose those assertions if it became one check. Mobster writes one check per group instead: flow-part-1 holds the steps up to the first assertion and that assertion, flow-part-2 holds the steps up to the second, and so on. Each part replays the steps from the start. No assertion is dropped. Steps after the last assertion come after everything a check can judge. The output lists them, because no expectation covers them.

What is ignored

These options change timing or wording and are dropped, with no effect on what a check proves: label, duration, speed, timeout, retryTapIfNoChange, waitToSettleTimeoutMs, delay. optional: true on an assertion is refused, because an optional assertion judges nothing. On a tap it becomes a step that skips when the element isn’t there.

Commands Mobster can’t run

Every row names the command and says what to do instead. An assertion is refused, and so is a command with a value Mobster can’t read. The rows that name an assertion (assertTrue, assertWithAI, assertNoDefectsWithAI, assertScreenshot) refuse the flow. Every other row becomes a TODO step. Run the check once and read its report: the model does what the step needs at that point, or nothing, and replay keeps the path it took.

Read the checks before you commit them

Read each imported check once. The import can’t tell whether a Maestro pattern matches the same label on iOS as it does in Maestro, and a flow written for Android may name text your iOS app doesn’t show. Run mobster test once and read the first report (Reports).