> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# subflows/first-run-intro.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subflows/first-run-intro.yaml)

```yaml
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"
```
