appId: ${APP_ID}
tags:
- first-run
- onboarding
- tutorial
---
# 00 - The whole first run on a clean install, played for real:
# intro "Start" -> tutorial welcome -> choose a song (Play) -> the guided first song (the mock chart:
# C4, E4, G4 hold, D4) -> its result ("Open songs list") -> the song list; then a cold restart goes
# straight to the app (the first run is remembered). The sim build is premium, so no paywall opens.
#
# 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. The song's result (Game Mode's, with its buttons): leave it for the song list.
- extendedWaitUntil:
visible:
id: "session-action-songs"
timeout: 90000
- runFlow: "../subflows/leave-to-song-list.yaml"
# 8. 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"