For AI agents: the complete documentation index is available at ../../../llms.txt, the full documentation bundle is available at ../../../llms-full.txt, and this page is available as Markdown at ../../../quality/scripts/subflows/first-run-intro.md.

subflows/first-run-intro.yaml

Source

appId: ${APP_ID}
---
# The first run's first step, from a clean install: launch fresh, wait for the intro and press Start.
# Start goes straight to the tutorial's welcome for every player (no paywall between them); the caller
# runs first-run-tutorial.yaml next. (The intro is portrait; the app turns landscape once it is past.)
- runFlow: launch-fresh.yaml
# The XCTest driver can fail a hierarchy request (500, kAXErrorInvalidUIElement) while the app is still
# starting. Maestro ends the flow on that ("Unknown error"); run-variants.sh runs it again. The pause first makes it rare.
- retry:
    maxRetries: 6
    commands:
      - runFlow:
          file: "pause.yaml"
          env:
            MS: "3000"
      - extendedWaitUntil:
          visible:
            id: "onboarding-start"
          timeout: 60000
# Start is on screen before it answers a touch: the splash's gates (navigation shell, warm-ups, chime)
# hold the intro inert for a few seconds more, and a tap in that window is swallowed without an error.
- runFlow:
    file: "pause.yaml"
    env:
      MS: "7000"
- tapOn:
    id: "onboarding-start"