appId: ${APP_ID}
---
# Reaches the song list after a launch, closing whatever opens over it on its own (a launch paywall, the
# 50% sale, "Learn Mode unlocked!" — dismiss-offers.yaml), so the flow continues from a known screen.
# These can be up BEFORE the list is (Learn Mode covers the whole screen at launch once a seeded
# `e2eSongEnds` count passes 3), so the wait itself keeps closing them: a plain wait for the list would
# time out under one.
- repeat:
times: 40
while:
notVisible:
id: "songs-search-input"
commands:
- runFlow: dismiss-offers.yaml
# Right after a launch: pause.yaml spends the time without asking the XCTest driver for the
# screen (sleep.yaml does, and can hit its 500 while the app is still starting).
- runFlow:
file: pause.yaml
env:
MS: "3000"
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 10000
# One can also open just after the list shows: give it a moment, close it, and be on the list.
- runFlow:
file: sleep.yaml
env:
MS: "3000"
- runFlow: dismiss-offers.yaml
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 30000