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