v1.0.10 · Release snapshot
Documentation comes from this release commit, without inheriting newer content. Commit: 63ea8c2b3d.
#subflows
#subflows/bootstrap-app.yaml
appId: ${APP_ID}
---
# Bootstrap App: launch an already-onboarded app (see flows/00-first-run.yaml for a clean install),
# dismiss any paywall / offer, and wait until the home screen is usable.
- runFlow:
file: "launch-app.yaml"
# A cold start shows the loading splash first ("Use headphones for better experience… 99%");
# the sidebar mounts under it, so wait for it to go before touching anything.
- extendedWaitUntil:
visible:
id: "tab-button-songs"
timeout: 120000
optional: true
- extendedWaitUntil:
notVisible: ".*Use headphones.*"
timeout: 120000
- runFlow:
when:
visible:
id: "paywall-close"
commands:
- tapOn:
id: "paywall-close"
- runFlow:
when:
visible:
id: "sale-off-50-close"
commands:
- tapOn:
id: "sale-off-50-close"
- extendedWaitUntil:
visible:
id: "tab-button-songs"
timeout: 30000#subflows/launch-app.yaml
appId: ${APP_ID}
---
# Cold-start the app under test (the bundled Release simulator build; no Metro involved).
# `e2eSkipFtue` starts the app past onboarding + the tutorial (src/bootstrap/e2e-skip-ftue.ts); the first-run
# flow launches without it.
- launchApp:
clearState: false
arguments:
e2eSkipFtue: "1"
# The app is landscape-only after its intro. On a headless simulator iOS UI automation takes the device
# for portrait while the app draws landscape, so Maestro's taps land at rotated positions (an element's
# id is found, but tapping it hits something else). Telling Maestro the orientation fixes the mapping.
- setOrientation: LANDSCAPE_LEFT#subflows/navigate-to-tab.yaml
appId: ${APP_ID}
---
# Navigate to Tab: expects ${TAB_NAME} ('songs', 'profile', 'mission', 'leagues')
- tapOn:
id: "tab-button-${TAB_NAME}"
- extendedWaitUntil:
visible:
id: "tab-button-${TAB_NAME}"
timeout: 5000#subflows/play-mock-song.yaml
appId: ${APP_ID}
---
# Plays the mock song for real, from the song list to the result screen:
# ${SONG_ID} catalog id of a mock song (e2e-play | e2e-hard), both on the same chart
# ${FIRST_NOTE_DELAY_MS} how long to wait before the first tap (default 3000)
#
# The chart (src/core/e2e/e2e-mock-catalog.pure.ts, 60 BPM): C4 single, E4 single, G4 HOLD (2 s), D4 single.
# The game WAITS on the hit line for each tile (auto-pause), and a tap within 2 s of the tile
# freezing there scores Perfect+, so no clock sync is needed: the first tile reaches the line ~2.3 s
# after the pause button shows, and every following tile 2 s after the previous tap or hold ends;
# Maestro's own tap overhead (~2.3 s) lands each tap inside that window. A clean run is
# 4 x Perfect+ plus the hold bonus = score 58, 3 stars.
#
# Keys: the keyboard fills the (landscape) screen height, 10 white keys A3..C5 at 5%, 15% ... 95%
# of the width; the white key faces sit at ~92% of the height (away from the black keys).
- tapOn:
id: "song-row-play-${SONG_ID}"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 60000
# Let the first tile arrive (a wait that always runs its full time: nothing named this is on screen).
- extendedWaitUntil:
visible:
id: "no-such-element"
timeout: ${FIRST_NOTE_DELAY_MS}
optional: true
# A wrong key does nothing: the tile stays frozen on the line, the score stays 0.
- tapOn:
point: "75%,92%"
# Note 1, C4 (single) -> note 2, E4 (single) -> note 3, G4 (hold: press and keep holding) -> note 4, D4 (single).
- tapOn:
point: "25%,92%"
- tapOn:
point: "45%,92%"
- longPressOn:
point: "65%,92%"
- tapOn:
point: "35%,92%"
# The song ends on its last note: the result screen.
- extendedWaitUntil:
visible:
id: "session-result-score"
timeout: 60000#subflows/sleep.yaml
appId: ${APP_ID}
---
# Waits ${MS} ms. Maestro has no sleep, and `waitForAnimationToEnd` returns as soon as the screen is
# still: wait for an element that is never there, `optional` so running the clock out is not a failure.
- extendedWaitUntil:
visible:
id: "no-such-element"
timeout: ${MS}
optional: true