v1.0.12 · Release snapshot
Documentation comes from this release commit, without inheriting newer content. Commit: 35589c6fda.
#catalog
#catalog/01-bundled-default.yaml
appId: ${APP_ID}
tags:
- catalog
---
# Server DOWN, nothing cached: the bundled catalog is what the player sees, instantly.
- runFlow: launch.yaml
- assertVisible:
id: "song-row-play-.*"
- runFlow: filter-remote.yaml
- assertNotVisible: "Maestro Remote Song"
- assertNotVisible:
id: "song-row-play-maestro-remote"#catalog/02-remote-overrides-bundled.yaml
appId: ${APP_ID}
tags:
- catalog
---
# Server UP with a newer catalog: the launch refresh overrides the bundle with a song the bundle does not have.
- runFlow: launch.yaml
- extendedWaitUntil:
visible: "Maestro Remote Song"
timeout: 60000
- runFlow: filter-remote.yaml
- extendedWaitUntil:
visible:
id: "song-row-play-maestro-remote"
timeout: 15000#catalog/03-remote-song-downloads-midi-and-plays.yaml
appId: ${APP_ID}
tags:
- catalog
- midi
---
# The remote-only song has NO bundled chart: playing it must download its MIDI from the CDN, then start gameplay.
- runFlow: launch.yaml
# The catalog is already on disk from the previous scenario, so the remote-only song is the first row — no search box (its keyboard swallows taps).
- runFlow: play-remote-song.yaml
# Gameplay really runs on the downloaded chart: pausing shows the session actions.
- retry:
maxRetries: 3
commands:
- tapOn:
id: "gameplay-header-pause"
- extendedWaitUntil:
visible:
id: "session-action-primary"
timeout: 10000#catalog/04-restart-and-cached-midi.yaml
appId: ${APP_ID}
tags:
- catalog
- midi
---
# Cold restart: the remote catalog paints from disk and the MIDI plays from the disk cache.
# run.sh asserts the server saw no new request during this flow (or none at all when it is down).
- runFlow: launch.yaml
# The catalog is already on disk from the previous scenario, so the remote-only song is the first row — no search box (its keyboard swallows taps).
- runFlow: play-remote-song.yaml#catalog/filter-remote.yaml
appId: ${APP_ID}
---
# A catalog update inserts rows ABOVE the viewport (the list keeps what the player was looking at),
# so narrow the list to the remote-only song instead of scrolling for it.
- tapOn:
id: "songs-search-input"
- inputText: "Maestro"#catalog/launch.yaml
appId: ${APP_ID}
---
# Cold-start the dev client against Metro (JS always comes from Metro) and wait for the sidebar.
- stopApp
# The dev client's floating "Tools" button is draggable and can end up on top of a row's Play button, which
# then swallows the tap — so launch it with the button, the intro and the auto-opened menu switched off.
- openLink: "magicpiano://expo-development-client/?url=http%3A%2F%2Flocalhost%3A${METRO_PORT}&__expo_disable_fab=1&__expo_disable_onboarding=1&__expo_disable_auto_launch=1"
# First-ever dev-client launch shows the developer-menu intro; it never returns afterwards.
- runFlow:
when:
visible: "Continue"
commands:
- tapOn: "Continue"
- runFlow:
when:
visible:
id: "paywall-close"
commands:
- tapOn:
id: "paywall-close"
- extendedWaitUntil:
visible:
id: "tab-button-songs"
timeout: 90000
# The sidebar mounts underneath the loading splash ("Use headphones for better experience… 99%"),
# so wait for the splash to be gone before touching anything.
- extendedWaitUntil:
notVisible: ".*Use headphones.*"
timeout: 120000
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 60000#catalog/play-remote-song.yaml
appId: ${APP_ID}
---
# Tap the remote-only song's Play and wait for gameplay. A tap right after launch can be swallowed while the
# list settles, and "select song" runs an interstitial (up to a 15 s backfill) before gameplay — so wait long,
# and re-tap only if gameplay never showed up.
- extendedWaitUntil:
visible:
id: "song-row-play-maestro-remote"
timeout: 60000
- retry:
maxRetries: 2
commands:
- tapOn:
id: "song-row-play-maestro-remote"
- extendedWaitUntil:
visible:
id: "gameplay-header-pause"
timeout: 45000