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

subflows/bootstrap-app.yaml

Source

appId: ${APP_ID}
---
# Bootstrap App: launch an already-onboarded app (see flows/00-first-run.yaml for a clean install),
# dismiss any paywall / offer, and wait until the home screen is usable.
- runFlow:
    file: "launch-app.yaml"
# The Debug app can show React Native's LogBox toast / error sheet over the app; the Release app never does.
- runFlow:
    when:
      true: ${typeof E2E_MODE !== 'undefined' && E2E_MODE == 'debug'}
    commands:
      - runFlow: dismiss-dev-overlays.yaml

# A cold start shows the loading splash first ("Use headphones for better experience… 99%");
# the sidebar mounts under it, so wait for it to go before touching anything.
- extendedWaitUntil:
    visible:
      id: "tab-button-songs"
    timeout: 120000
    optional: true
- extendedWaitUntil:
    notVisible: ".*Use headphones.*"
    timeout: 120000

- runFlow:
    when:
      visible:
        id: "paywall-close"
    commands:
      - tapOn:
          id: "paywall-close"

- runFlow:
    when:
      visible:
        id: "sale-off-50-close"
    commands:
      - tapOn:
          id: "sale-off-50-close"

- extendedWaitUntil:
    visible:
      id: "tab-button-songs"
    timeout: 30000