appId: ${APP_ID}
tags:
- subscriptions
- balance
---
# balance (checklist G7): back on the song list after 3 songs since it was last there
# (`paywall.home_return_songs`), the paywall opens (`paywall-screen-home_return`); after 2 it does not.
# Songs after the first of a run are replays from the result, so no song-row tap resets the count;
# each song is replayed at most twice, under the replay paywall's 3. Five song starts in all, under the
# default paywall's 6.
# Numbers checked against the arm's config by src/domain/__tests__/e2e-subscription-expectations.test.ts:
# HOME_RETURN_SONGS: "3"
- runFlow: ../../subflows/launch-app-clean.yaml
- runFlow: ../../subflows/to-song-list.yaml
# Two songs, then the list: no paywall.
- runFlow:
file: ../../subflows/play-mock-song.yaml
env:
SONG_ID: "e2e-play"
FIRST_NOTE_DELAY_MS: "3000"
- extendedWaitUntil:
visible:
id: "session-action-replay"
timeout: 20000
- tapOn:
id: "session-action-replay"
- runFlow: ../../subflows/play-mock-notes.yaml
- extendedWaitUntil:
visible:
id: "session-action-songs"
timeout: 30000
- tapOn:
id: "session-action-songs"
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 30000
- runFlow:
file: ../../subflows/sleep.yaml
env:
MS: "5000"
- assertNotVisible:
id: "paywall-screen-home_return"
# Three songs, then the list: the paywall.
- runFlow:
file: ../../subflows/play-mock-song.yaml
env:
SONG_ID: "e2e-hard"
FIRST_NOTE_DELAY_MS: "3000"
- extendedWaitUntil:
visible:
id: "session-action-replay"
timeout: 20000
- tapOn:
id: "session-action-replay"
- runFlow: ../../subflows/play-mock-notes.yaml
- extendedWaitUntil:
visible:
id: "session-action-replay"
timeout: 30000
- tapOn:
id: "session-action-replay"
- runFlow: ../../subflows/play-mock-notes.yaml
- extendedWaitUntil:
visible:
id: "session-action-songs"
timeout: 30000
- tapOn:
id: "session-action-songs"
- extendedWaitUntil:
visible:
id: "paywall-screen-home_return"
timeout: 30000
- tapOn:
id: "paywall-close"