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

# flows/03-gameplay-perfect-run.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/flows/03-gameplay-perfect-run.yaml)

```yaml
appId: ${APP_ID}
tags:
  - gameplay
  - scoring
---
# 03 - Gameplay: a real run of the mock song (3 single notes + 1 hold), scored.
# A clean run is 4 x Perfect+ (12 each) plus the hold bonus: 58 points, 3 stars.

- runFlow:
    file: "../subflows/bootstrap-app.yaml"
- runFlow:
    file: "../subflows/play-mock-song.yaml"
    env:
      SONG_ID: "e2e-play"
      FIRST_NOTE_DELAY_MS: "3000"

# Result: the song, its score, three stars.
- assertVisible: "E2E Play Song"
- assertVisible:
    id: "star-rating-3"
# The score counts up; its final value is the whole clean-run total.
- extendedWaitUntil:
    visible: "Score 58"
    timeout: 20000

# Back to the list.
- tapOn:
    id: "session-action-songs"
- extendedWaitUntil:
    visible:
      id: "songs-search-input"
    timeout: 30000
```
