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/flows/06-progress.md.

flows/06-progress.yaml

Source

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"