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

# flows/06-progress.yaml

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

```yaml
appId: ${APP_ID}
tags:
  - progress
  - persistence
---
# 06 - Progress: a really played song is recorded (profile's recent song + play count) and survives a restart.

- runFlow:
    file: "../subflows/bootstrap-app.yaml"
- runFlow:
    file: "../subflows/play-mock-song.yaml"
    env:
      SONG_ID: "e2e-play"
      FIRST_NOTE_DELAY_MS: "3000"
- tapOn:
    id: "session-action-songs"
- extendedWaitUntil:
    visible:
      id: "songs-search-input"
    timeout: 30000

# Profile shows it as the recent song, with a non-zero play count.
- tapOn:
    id: "tab-button-profile"
- extendedWaitUntil:
    visible: "Played [1-9][0-9]* times"
    timeout: 15000
- assertNotVisible: "No song played yet"

# Cold restart: still there.
- runFlow:
    file: "../subflows/bootstrap-app.yaml"
- tapOn:
    id: "tab-button-profile"
- extendedWaitUntil:
    visible: "Played [1-9][0-9]* times"
    timeout: 15000
- assertNotVisible: "No song played yet"
```
