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

# flows/04-songs-catalog.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/flows/04-songs-catalog.yaml)

```yaml
appId: ${APP_ID}
tags:
  - songs
  - catalog
---
# 04 - Song list against the mock catalog (an easy and a hard song): listing, search, difficulty filter.

- runFlow:
    file: "../subflows/bootstrap-app.yaml"

# The mock catalog is the whole catalog.
- extendedWaitUntil:
    visible:
      id: "song-row-play-e2e-play"
    timeout: 30000
- assertVisible:
    id: "song-row-play-e2e-hard"

# Search: nothing matches -> no rows; clearing brings both back.
- tapOn:
    id: "songs-search-input"
- inputText: "zzzzqqqq"
- assertNotVisible:
    id: "song-row-play-.*"
- eraseText: 20
- extendedWaitUntil:
    visible:
      id: "song-row-play-e2e-hard"
    timeout: 10000

# Search: a real query narrows the list to the matching song.
- inputText: "E2E Hard"
- extendedWaitUntil:
    notVisible:
      id: "song-row-play-e2e-play"
    timeout: 10000
- assertVisible:
    id: "song-row-play-e2e-hard"
- eraseText: 20
- extendedWaitUntil:
    visible:
      id: "song-row-play-e2e-play"
    timeout: 10000

# Difficulty filter: Easy keeps the easy song and drops the hard one; All brings it back.
- tapOn:
    id: "songs-difficulty-dropdown"
- tapOn: "Easy"
- extendedWaitUntil:
    notVisible:
      id: "song-row-play-e2e-hard"
    timeout: 10000
- assertVisible:
    id: "song-row-play-e2e-play"
- tapOn:
    id: "songs-difficulty-dropdown"
- tapOn: "All difficulties"
- extendedWaitUntil:
    visible:
      id: "song-row-play-e2e-hard"
    timeout: 10000
```
