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/launch-app-clean.md.

subflows/launch-app-clean.yaml

Source

appId: ${APP_ID}
---
# Like launch-app.yaml, but a clean install (state cleared) that starts past the first run.
# Cold-start the app under test, in either build the suite runs against (E2E_MODE, set by run-release.sh):
#   release (default)  the bundled Release simulator app: just launch it.
#   debug              the Expo dev client: JS comes from Metro (METRO_PORT), so open the project link.
# `e2eSkipFtue` starts the app past onboarding + the tutorial (src/bootstrap/e2e-skip-ftue.ts); a flow
# that walks the first run starts from launch-fresh.yaml instead.
- runFlow:
    when:
      true: ${typeof E2E_MODE !== 'undefined' && E2E_MODE == 'debug'}
    commands:
      - stopApp
      - launchApp:
          clearState: true
          stopApp: true
          arguments:
            e2eSkipFtue: "1"
      - runFlow: connect-dev-client.yaml
- runFlow:
    when:
      true: ${typeof E2E_MODE === 'undefined' || E2E_MODE != 'debug'}
    commands:
      - launchApp:
          clearState: true
          arguments:
            e2eSkipFtue: "1"
# The app is landscape-only after its intro. On a headless simulator iOS UI automation takes the device
# for portrait while the app draws landscape, so Maestro's taps land at rotated positions (an element's
# id is found, but tapping it hits something else). Telling Maestro the orientation fixes the mapping.
- setOrientation: LANDSCAPE_LEFT