v1.0.13 · Release snapshot
Documentation comes from this release commit, without inheriting newer content. Commit: 371ee4692c.
#flows
#flows/00-first-run.yaml
appId: ${APP_ID}
tags:
- first-run
- onboarding
- tutorial
---
# 00 - The whole first run on a clean install, played for real:
# intro "Start" -> tutorial welcome -> practice training (tap drill, hold drill) -> the tutorial song
# (the mock chart: C4, E4, G4 hold, D4) -> "Congrats!" -> pick a free song (Get) -> that song's gameplay
# -> back to the song list; then a cold restart goes straight to the app (the first run is remembered).
#
# Launched WITHOUT the `e2eSkipFtue` argument every other flow passes, and with a cleared app, so the app
# starts exactly as a new install. The steps are the shared subflows first-run-intro / first-run-tutorial
# (the variant flows walk the same run). The intro is portrait, everything after it landscape: the
# orientation Maestro believes in has to follow (see .maestro/README.md).
- runFlow: "../subflows/first-run-intro.yaml"
- runFlow: "../subflows/first-run-tutorial.yaml"
# 7. Cold restart (no skip argument): the first run is remembered, the app opens on the song list.
- runFlow:
when:
true: ${typeof E2E_MODE !== 'undefined' && E2E_MODE == 'debug'}
commands:
- stopApp
- launchApp:
clearState: false
stopApp: true
- runFlow: "../subflows/connect-dev-client.yaml"
- runFlow:
when:
true: ${typeof E2E_MODE === 'undefined' || E2E_MODE != 'debug'}
commands:
- launchApp:
clearState: false
- setOrientation: LANDSCAPE_LEFT
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 90000
- assertNotVisible:
id: "onboarding-start"#flows/00-smoke.yaml
appId: ${APP_ID}
tags:
- smoke
---
# 00 - Smoke: a clean install launches straight to a usable home screen (the e2e build starts past the
# first run — .maestro/e2e.env) with the catalog listed and every tab reachable.
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- assertVisible:
id: "songs-search-input"
- extendedWaitUntil:
visible:
id: "song-row-play-.*"
timeout: 60000
- assertVisible:
id: "tab-button-profile"
- assertVisible:
id: "tab-button-mission"
- assertVisible:
id: "tab-launcher-keyboard"#flows/01-navigation-flows.yaml
appId: ${APP_ID}
tags:
- navigation
---
# 01 - Navigation Flows: verify tabs, stack transitions, and back stack
# 1. Launch & Bootstrap
- runFlow:
file: "../subflows/bootstrap-app.yaml"
# 2. Verify Home / Song List Tab
- assertVisible:
id: "tab-button-songs"
- assertVisible:
id: "songs-search-input"
# 3. Switch to Profile Tab
- tapOn:
id: "tab-button-profile"
- assertVisible:
id: "profile-name-pill"
# 4. Switch to Mission Tab
- tapOn:
id: "tab-button-mission"
# Mission is a placeholder screen in this build; it replaces the song list.
- extendedWaitUntil:
notVisible:
id: "songs-search-input"
timeout: 10000
# 5. Open Free-play Keyboard Stack Screen
- tapOn:
id: "tab-launcher-keyboard"
- assertVisible:
id: "keyboard-screen-root"
- assertVisible:
id: "keyboard-back-button"
# 6. Pop Back to Tabs
- tapOn:
id: "keyboard-back-button"
- assertVisible:
id: "tab-button-songs"#flows/02-keyboard-sampler.yaml
appId: ${APP_ID}
tags:
- keyboard
- sampler
---
# 02 - Free-play Keyboard Sampler & Audio Controls Flow
# 1. Launch & Bootstrap App
- runFlow:
file: "../subflows/bootstrap-app.yaml"
# 2. Navigate to Keyboard Screen
- tapOn:
id: "tab-launcher-keyboard"
- assertVisible:
id: "keyboard-screen-root"
# 3. Test Zoom In / Zoom Out Controls
- assertVisible:
id: "keyboard-zoom-in"
- tapOn:
id: "keyboard-zoom-in"
- tapOn:
id: "keyboard-zoom-in"
- assertVisible:
id: "keyboard-zoom-out"
- tapOn:
id: "keyboard-zoom-out"
# 4. Test Minimap Drag / Pan Navigation
- assertVisible:
id: "keyboard-minimap"
- swipe:
from:
id: "keyboard-minimap"
direction: "RIGHT"
duration: 500
# 5. Test Sustain Pedal Toggle
- assertVisible:
id: "keyboard-sustain-toggle"
- tapOn:
id: "keyboard-sustain-toggle"
# Turn off sustain pedal
- tapOn:
id: "keyboard-sustain-toggle"
# 6. Tap Piano Key Surface (Center Area) to trigger Sampler Audio
- tapOn:
point: "50%,75%"
# 7. Return to Song List Tab
- tapOn:
id: "keyboard-back-button"
- assertVisible:
id: "tab-button-songs"#flows/03-gameplay-perfect-run.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#flows/04-songs-catalog.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#flows/05-profile.yaml
appId: ${APP_ID}
tags:
- profile
- persistence
---
# 05 - Profile: edit the display name, open / close settings, and the name survives a restart.
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "tab-button-profile"
- extendedWaitUntil:
visible:
id: "profile-name-pill"
timeout: 15000
# Edit name.
- tapOn:
id: "profile-name-pill"
# The dialog's field is autofocused but, with the keyboard up, the dialog is not in the accessibility
# tree: type into the focused field and submit with the keyboard's Done (same as the OK button).
- waitForAnimationToEnd:
timeout: 5000
- eraseText: 40
- inputText: "Maestro"
- pressKey: Enter
- extendedWaitUntil:
visible: "Maestro"
timeout: 10000
# Settings opens and closes.
- tapOn:
id: "profile-settings-gear"
- assertVisible: "GENERAL"
# The close button (top-right glass X) is not exposed to automation: tap it by position.
- tapOn:
point: "96%,9%"
- assertNotVisible: "GENERAL"
# Cold restart: the name is persisted.
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "tab-button-profile"
- extendedWaitUntil:
visible: "Maestro"
timeout: 15000#flows/06-progress.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"#flows/07-gameplay-pause-replay.yaml
appId: ${APP_ID}
tags:
- gameplay
- pause
---
# 07 - Gameplay controls on the mock song: pause menu, replay (restarts the song), resume, leave to the list.
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "song-row-play-e2e-play"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 60000
# Pause: the action bar offers resume / replay / back to songs.
- tapOn:
id: "gameplay-header-pause"
- extendedWaitUntil:
visible:
id: "session-action-primary"
timeout: 10000
- assertVisible:
id: "session-action-replay"
- assertVisible:
id: "session-action-songs"
# Replay restarts the song: back in gameplay, not paused.
- tapOn:
id: "session-action-replay"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 30000
- assertNotVisible:
id: "session-action-primary"
# Pause again and resume.
- tapOn:
id: "gameplay-header-pause"
- extendedWaitUntil:
visible:
id: "session-action-primary"
timeout: 10000
- tapOn:
id: "session-action-primary"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 10000
- assertNotVisible:
id: "session-action-primary"
# Pause and leave: no result for an unfinished song, back on the list.
- tapOn:
id: "gameplay-header-pause"
- extendedWaitUntil:
visible:
id: "session-action-songs"
timeout: 10000
- tapOn:
id: "session-action-songs"
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 30000#flows/08-adaptive-tempo.yaml
appId: ${APP_ID}
tags:
- gameplay
- scoring
- adaptive-tempo
---
# 08 - Gameplay with adaptive tempo: score and stars are untouched.
#
# The hidden tempo multiplier must be invisible to the player and have no effect on score or
# stars. This is 03's run with adaptive tempo forced on (needs a build made with
# EXPO_PUBLIC_E2E_ADAPTIVE_TEMPO=1 next to EXPO_PUBLIC_E2E=1 — see e2e.env; on a build without it
# the flow still passes, it just is not testing the feature) and with deliberate stray taps and a
# long wait on the hit line, i.e. the wait-mode pauses the policy listens to.
#
# The mock chart is 4 notes, so the policy never reaches its evaluation guard (>= 8 notes judged,
# 2 bars) and m stays 1: this guards the WIRING (providers, callbacks, window math, backing hold)
# against changing a clean run's result. The slow-down itself (miss notes -> m drops -> recovers)
# is exercised by hand in the simulator — docs/adaptive-tempo.md, "Playing it by hand".
#
# NOTE for the agent that wrote this: it was never run by an agent (e2e is the owner's / CI's).
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "song-row-play-e2e-play"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 60000
# Sit on the first tile for a while: the song is auto-paused on the hit line (a wait-mode pause).
- extendedWaitUntil:
visible:
id: "no-such-element"
timeout: 6000
optional: true
# Wrong keys while frozen: stray taps. Nothing moves, the score stays 0.
- tapOn:
point: "75%,92%"
- tapOn:
point: "85%,92%"
- tapOn:
point: "75%,92%"
# Then the clean run, as in 03: C4, E4, G4 (hold), D4.
- tapOn:
point: "25%,92%"
- tapOn:
point: "45%,92%"
- longPressOn:
point: "65%,92%"
- tapOn:
point: "35%,92%"
- extendedWaitUntil:
visible:
id: "session-result-score"
timeout: 60000
# Same result as a run without adaptive tempo: 4 x Perfect+ and the hold bonus, 3 stars.
- assertVisible: "E2E Play Song"
- assertVisible:
id: "star-rating-3"
- extendedWaitUntil:
visible: "Score 58"
timeout: 20000
- tapOn:
id: "session-action-songs"
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 30000#flows/09-adaptive-tempo-devtool.yaml
appId: ${APP_ID}
tags:
- gameplay
- adaptive-tempo
- devtool
---
# 09 - Simulator ↔ desktop DevTool, realtime: while this flow sits in a song, the desktop side
# (scripts/e2e-adaptive-tempo-driver.ts, started by .maestro/run-adaptive-tempo-devtool.sh) forces
# the tempo, tightens the ceiling, raises the floor and resets the tuning, and asserts the phone reports each
# change within 2.5 s. This flow only has to keep a play on screen long enough, then play it out so
# the real clock can follow the forced tempo (the driver's last step).
#
# Needs a build with EXPO_PUBLIC_E2E=1, EXPO_PUBLIC_E2E_ADAPTIVE_TEMPO=1 and
# EXPO_PUBLIC_ENABLE_DESKTOP_TOOLS=1 (see e2e.env), and the relay on localhost:7799 — run it with
# .maestro/run-adaptive-tempo-devtool.sh, not on its own (alone it passes but tests nothing).
#
# NOTE for the agent that wrote this: it was never run by an agent (e2e is the owner's / CI's).
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "song-row-play-e2e-play"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 60000
# The song freezes on the first tile (wait mode). Sit here while the desktop side changes the tempo.
- extendedWaitUntil:
visible:
id: "no-such-element"
timeout: 20000
optional: true
# Play it out: C4, E4, G4 (hold), D4 — the clock runs again and follows the forced tempo.
- tapOn:
point: "25%,92%"
- tapOn:
point: "45%,92%"
- longPressOn:
point: "65%,92%"
- tapOn:
point: "35%,92%"
- extendedWaitUntil:
visible:
id: "session-result-score"
timeout: 60000#flows/10-adaptive-tempo-snap.yaml
appId: ${APP_ID}
tags:
- gameplay
- adaptive-tempo
- devtool
---
# 10 - Pause slow-down, end to end: the song freezes on the first tile (wait mode), nobody taps, and the
# adaptive-tempo policy must answer AT THAT MOMENT with an instant -0.15 (m 1.00 -> 0.85, no ramp,
# applied while the song is still stopped). Then the notes are played and the clock must stay on the
# slowed tempo.
#
# The 4-note mock chart is shorter than the policy's warm-up (2 bars / 8 notes), so the desktop side
# (scripts/e2e-adaptive-tempo-driver.ts, SCENARIO=snap) first sets a tuning through the DevTool relay
# that lifts the warm-up and the end-of-song freeze — see SNAP_E2E_TUNING in
# scripts/e2e-adaptive-tempo-steps.ts — and then asserts, from the phone's own report, that the pause
# produced `slow:pause` -> 0.85 with the live multiplier already 0.85, and that the clock follows
# after the song resumes.
#
# Needs a build with EXPO_PUBLIC_E2E=1, EXPO_PUBLIC_E2E_ADAPTIVE_TEMPO=1 and
# EXPO_PUBLIC_ENABLE_DESKTOP_TOOLS=1 (see e2e.env) and the relay on localhost:7799 — run it with
# .maestro/run-adaptive-tempo-snap.sh, not on its own (alone it passes but tests nothing).
# The flow does not assert score or stars: the first note is played late on purpose.
#
# NOTE for the agent that wrote this: it was never run by an agent (e2e is the owner's / CI's).
- runFlow:
file: "../subflows/bootstrap-app.yaml"
- tapOn:
id: "song-row-play-e2e-play"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 60000
# The song freezes on the first tile and stays frozen: long enough to be a real pause (past the
# mirrored Perfect/Great zone) and for the driver to read the decision from the phone.
- extendedWaitUntil:
visible:
id: "no-such-element"
timeout: 12000
optional: true
# Play it out: C4, E4, G4 (hold), D4 — the clock runs again, now at the slowed tempo.
- tapOn:
point: "25%,92%"
- tapOn:
point: "45%,92%"
- longPressOn:
point: "65%,92%"
- tapOn:
point: "35%,92%"
- extendedWaitUntil:
visible:
id: "session-result-score"
timeout: 90000