appId: ${APP_ID}
---
# The banner on a song's result screen, for a free player, with the e2e ads (E2E_ADS=1):
# ${EXPECT_BANNER} "1": the `e2e-banner` placeholder shows on the result; anything else: it does not
# No seeded song ends: the first song end of an install is under every arm's `fs.first_after_song_end`,
# so no interstitial covers the result.
# One retry from a clean install: the XCTest driver now and then fails a point tap mid-song
# (`CommandFailed: null`, the app's accessibility server briefly unreachable), which says nothing
# about the banner.
- retry:
maxRetries: 1
commands:
- runFlow: launch-app-clean.yaml
- runFlow: to-song-list.yaml
- runFlow:
file: play-mock-song.yaml
env:
SONG_ID: "e2e-play"
FIRST_NOTE_DELAY_MS: "3000"
- runFlow:
when:
true: ${EXPECT_BANNER == '1'}
commands:
- extendedWaitUntil:
visible:
id: "e2e-banner"
timeout: 30000
- runFlow:
when:
true: ${EXPECT_BANNER != '1'}
commands:
- runFlow:
file: sleep.yaml
env:
MS: "10000"
- assertNotVisible:
id: "e2e-banner"