/qa-mobile:maestro-flowsfrom qa-mobile
Writes and runs Maestro mobile UI test flows in YAML. Covers tapOn, inputText, assertVisible, swipe, and nested flows for iOS, Android, Flutter, React Native, and web.
Ships in qa-mobile. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Maestro automates mobile and web UI from declarative YAML flows (per maestro-docs). The flow file is the artifact - no compile step, no language runtime to set up.
If the team needs deep gray-box hooks (per-component intercepts),
detox-testing (RN) or framework-specific
unit/widget tests cover that better.
curl -Ls "https://get.maestro.mobile.dev" | bash
maestro --version
Cross-platform: macOS, Linux, Windows (WSL recommended).
# .maestro/cart-flow.yaml
appId: com.example.app
---
- launchApp
- tapOn: "Sign in"
- inputText: "[email protected]"
- tapOn: "Password"
- inputText: "test-password"
- tapOn: "Continue"
- assertVisible: "Welcome"
- tapOn: "Add to cart"
- assertVisible:
text: "Cart"
enabled: true
- tapOn: "Cart"
- assertVisible: "1 item"
- tapOn: "Checkout"
The file is YAML with appId declaration + --- separator + a
list of commands. Commands map directly to user actions.
| Command | Purpose |
|---|---|
launchApp | Start the app fresh |
tapOn: "<text>" | Tap an element with visible text |
tapOn: { id: "..." } | Tap by accessibility ID |
inputText: "..." | Type text into the focused field |
assertVisible: "..." | Assert element is visible |
assertNotVisible: "..." | Assert element is NOT visible |
swipe: { direction: UP } | Swipe |
scrollUntilVisible: { element: { text: "..." } } | Scroll until found |
back | Press back / navigate back |
pressKey: ENTER | Synthesize a hardware key |
takeScreenshot | Capture screenshot to artifact dir |
runFlow: "<other.yaml>" | Compose flows |
evalScript: "<js>" | Run JavaScript for complex conditions |
# .maestro/login.yaml
appId: com.example.app
---
- launchApp
- tapOn: "Sign in"
- inputText:
text: ${EMAIL} # env-variable interpolation
- tapOn: "Password"
- inputText: ${PASSWORD}
- tapOn: "Continue"
- assertVisible: "Welcome"
# .maestro/cart-flow.yaml
appId: com.example.app
---
- runFlow: "login.yaml"
- tapOn: "Add to cart"
- assertVisible: "1 item"
The runFlow composition keeps shared paths (login, navigation)
DRY across the test suite.
- evalScript: |
output.timestamp = new Date().toISOString();
- inputText: ${output.timestamp}
- tapOn: "Save"
# Conditional flow
- runFlow:
when:
visible: "Onboarding"
file: "skip-onboarding.yaml"
evalScript reads + writes to an output object that subsequent
commands can reference. when makes commands conditional.
# Single flow
maestro test .maestro/cart-flow.yaml
# Whole directory
maestro test .maestro/
# With env vars
[email protected] PASSWORD=test maestro test .maestro/
Verify: maestro test exits non-zero if any command fails. If it does,
Maestro writes a screenshot of the failing screen to its output dir - use it
to fix the failing tapOn / assertVisible target, then re-run before
moving on.
maestro studio
Opens a desktop app showing the connected device + an inspector for each tapped element. Click an element → Studio generates the corresponding YAML command. For non-engineers, this dramatically shortens the authoring loop.
# .github/workflows/maestro.yml
jobs:
maestro-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
script: |
curl -Ls "https://get.maestro.mobile.dev" | bash
export PATH="$HOME/.maestro/bin:$PATH"
maestro test .maestro/
maestro-ios:
runs-on: macos-15
steps:
- uses: actions/checkout@v5
- run: |
xcrun simctl boot 'iPhone 15'
curl -Ls "https://get.maestro.mobile.dev" | bash
export PATH="$HOME/.maestro/bin:$PATH"
maestro test .maestro/
Verify: maestro test exits non-zero on any flow failure, so a failing flow
fails the job. Upload Maestro's screenshot output as a build artifact (e.g.
actions/upload-artifact) so batch failures are debuggable without a local
re-run.
For matrix runs across N devices in parallel, use Maestro Cloud (per maestro-docs) - handles farm-side parallelism without local emulator orchestration.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
tapOn text that's translated | Tests fail in non-English locales. | Use tapOn: { id: "..." } for stable lookups. |
| One mega-flow with 100 steps | Failure mid-flow obscures cause; reruns repeat all 100 steps. | Modularize via runFlow (Step 4). |
| Hard-coded credentials in YAML | Secrets in git. | Env vars + ${VAR} interpolation (Step 4). |
evalScript for everything (writing tests in JS via YAML) | Defeats Maestro's YAML simplicity. | Use evalScript only for genuinely complex conditions. |
swipe without direction / verification | Swipes vary per platform; visible state may not change. | assertVisible after swipe to confirm state changed. |
Skipping appId declaration | Maestro can't tell which app to drive; ambiguous failures. | Always declare appId (Step 2). |
detox-testing) fit better.evalScript may be needed.detox-testing,
appium-testing - alternative
cross-platform frameworks with deeper hooks.xcuitest-suite,
espresso-suite - native
alternatives for single-platform.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
maestro, mobile-ui-testing, yaml-flows, cross-platform-testing
npx claudepluginhub testland/qa --plugin qa-mobile8 skills in this plugin
/appium-testingUse for any question or task about Appium mobile UI tests, even a quick fix, including tests that break after an Appium upgrade and suites that pass on Android but fail on iOS: one suite for iOS and Android (native or React Native) with XCUITest, UiAutomator2 and Espresso drivers, capabilities, clients in JS, Python, Java, Ruby or .NET, simulators, emulators and device farms./detox-testingUse whenever a React Native app needs end-to-end tests with Detox: gray-box runs inside the app, by.id, by.text and by.label matchers, waitFor for extra sync, and the Jest runner. Flutter is flutter-testing; cross-platform black-box is appium-testing; YAML flows are maestro-flows./espresso-suiteUse whenever an Android app needs UI tests in Google's Espresso: onView with perform and check, automatic synchronization instead of sleeps, IdlingResource for app async work, ./gradlew connectedAndroidTest and JUnit XML results./flutter-testingUse whenever a Flutter app needs tests: unit tests with flutter test, widget tests with testWidgets and WidgetTester, integration_test on simulators, emulators or devices, choosing the layer per change, mockito with build_runner, LCOV coverage and CI./mobile-a11y-test-authorUse when an iOS or Android app needs accessibility tests: XCUITest performAccessibilityAudit (iOS 17+), VoiceOver labels and traits, Espresso AccessibilityChecks, Accessibility Scanner and TalkBack order, plus WCAG checks for labels, 44pt and 48dp touch targets, contrast and focus order./mobile-device-matrix-toolkitUse when deciding which iOS and Android devices and OS versions to test on at each stage to control CI cost: smoke per PR, regression per merge, full farm at release. Generates Appium configs per device from one YAML, runs a GitHub Actions matrix and merges JUnit results into one table.2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job