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