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

# subflows/to-song-list.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subflows/to-song-list.yaml)

```yaml
appId: ${APP_ID}
---
# Reaches the song list after a launch, closing whatever opens over it on its own (a launch paywall, the
# 50% sale, "Learn Mode unlocked!" — dismiss-offers.yaml), so the flow continues from a known screen.
# These can be up BEFORE the list is (Learn Mode covers the whole screen at launch once a seeded
# `e2eSongEnds` count passes 3), so the wait itself keeps closing them: a plain wait for the list would
# time out under one.
- repeat:
    times: 40
    while:
      notVisible:
        id: "songs-search-input"
    commands:
      - runFlow: dismiss-offers.yaml
      # Right after a launch: pause.yaml spends the time without asking the XCTest driver for the
      # screen (sleep.yaml does, and can hit its 500 while the app is still starting).
      - runFlow:
          file: pause.yaml
          env:
            MS: "3000"
- extendedWaitUntil:
    visible:
      id: "songs-search-input"
    timeout: 10000
# One can also open just after the list shows: give it a moment, close it, and be on the list.
- runFlow:
    file: sleep.yaml
    env:
      MS: "3000"
- runFlow: dismiss-offers.yaml
- extendedWaitUntil:
    visible:
      id: "songs-search-input"
    timeout: 30000
```
