> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# subscriptions/balance/07-default-paywall.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subscriptions/balance/07-default-paywall.yaml)

```yaml
appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance (checklist G6): the default paywall (`paywall-screen-default_paywall`) opens on the result of
# the 6th song start (`paywall.default_paywall_song_start`), once for life. A clean install past the first
# run starts with 0 song starts and the first-song paywall already spent (e2e-skip-ftue). Each song is
# played from the song list, so the home-return paywall (3 songs since Home) and the replay paywall
# never come due here.
# Numbers checked against the arm's config by src/domain/__tests__/e2e-subscription-expectations.test.ts:
#   DEFAULT_SONG_START: "6"
- runFlow: ../../subflows/launch-app-clean.yaml
- runFlow: ../../subflows/to-song-list.yaml

# Song starts 1 to 5: no default paywall on their results.
- repeat:
    times: 5
    commands:
      - runFlow:
          file: ../../subflows/play-mock-song.yaml
          env:
            SONG_ID: "e2e-play"
            FIRST_NOTE_DELAY_MS: "3000"
      - runFlow:
          file: ../../subflows/sleep.yaml
          env:
            MS: "8000"
      - assertNotVisible:
          id: "paywall-screen-default_paywall"
      - runFlow: ../../subflows/leave-to-song-list.yaml

# Song start 6: the default paywall on its result.
- runFlow:
    file: ../../subflows/play-mock-song.yaml
    env:
      SONG_ID: "e2e-play"
      FIRST_NOTE_DELAY_MS: "3000"
- extendedWaitUntil:
    visible:
      id: "paywall-screen-default_paywall"
    timeout: 20000
- tapOn:
    id: "paywall-close"
- runFlow: ../../subflows/leave-to-song-list.yaml

# Song start 7: not again.
- runFlow:
    file: ../../subflows/play-mock-song.yaml
    env:
      SONG_ID: "e2e-play"
      FIRST_NOTE_DELAY_MS: "3000"
- runFlow:
    file: ../../subflows/sleep.yaml
    env:
      MS: "8000"
- assertNotVisible:
    id: "paywall-screen-default_paywall"
```
