v1.0.12 · Release snapshot

Documentation comes from this release commit, without inheriting newer content. Commit: 35589c6fda.

subscriptions

subscriptions/aggressive/01-post-onboarding-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - aggressive
---
# aggressive: the paywall after onboarding (portrait) does not sell the free trial (`paywall.trial_intro`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/post-onboarding-paywall.yaml"
    env:
      EXPECT_TRIAL: "0"

subscriptions/aggressive/02-user-opened-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - aggressive
---
# aggressive: the paywall a player opens from Profile (landscape) does not sell the free trial (`paywall.trial_user_opened`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/user-opened-paywall.yaml"
    env:
      EXPECT_TRIAL: "0"

subscriptions/aggressive/03-launch-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - aggressive
---
# aggressive: the paywall a cold launch owes from the 2nd session does not open (`paywall.launch_paywall`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/launch-paywall.yaml"
    env:
      EXPECT_PAYWALL: "0"

subscriptions/balance/01-post-onboarding-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance: the paywall after onboarding (portrait) sells the 3-day free trial (`paywall.trial_intro`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/post-onboarding-paywall.yaml"
    env:
      EXPECT_TRIAL: "1"

subscriptions/balance/02-user-opened-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance: the paywall a player opens from Profile (landscape) sells the 3-day free trial (`paywall.trial_user_opened`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/user-opened-paywall.yaml"
    env:
      EXPECT_TRIAL: "1"

subscriptions/balance/03-launch-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance: the paywall a cold launch owes from the 2nd session opens (`paywall.launch_paywall`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/launch-paywall.yaml"
    env:
      EXPECT_PAYWALL: "1"

subscriptions/balance/04-launch-offers.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance (checklist G1–G3): what each cold launch owes. Launch 1 (a clean install past the first run)
# owes nothing; launch 2 the subscription paywall; launch 3 the 50%-off offer in its place
# (`paywall.discount_50_from_session` 3, once for life); launch 4 the subscription paywall again.
# The paywall on screen names what opened it: `paywall-screen-session`, `sale-off-50-screen-session`.
# Numbers checked against the arm's config by src/domain/__tests__/e2e-subscription-expectations.test.ts:
#   LAUNCH_FROM: "2"  DISCOUNT_FROM: "3"
- runFlow: ../../subflows/launch-app-clean.yaml
- extendedWaitUntil:
    visible:
      id: "songs-search-input"
    timeout: 120000
- runFlow:
    file: ../../subflows/sleep.yaml
    env:
      MS: "15000"
- assertNotVisible:
    id: "paywall-cta"
- assertNotVisible:
    id: "sale-off-50-close"

# Launch 2: the subscription paywall.
- runFlow: ../../subflows/launch-app.yaml
- extendedWaitUntil:
    visible:
      id: "paywall-screen-session"
    timeout: 60000
- assertNotVisible:
    id: "sale-off-50-close"
- tapOn:
    id: "paywall-close"

# Launch 3: the 50%-off offer instead.
- runFlow: ../../subflows/launch-app.yaml
- extendedWaitUntil:
    visible:
      id: "sale-off-50-screen-session"
    timeout: 60000
- assertNotVisible:
    id: "paywall-cta"
- tapOn:
    id: "sale-off-50-close"

# Launch 4: the subscription paywall again, no offer.
- runFlow: ../../subflows/launch-app.yaml
- extendedWaitUntil:
    visible:
      id: "paywall-screen-session"
    timeout: 60000
- assertNotVisible:
    id: "sale-off-50-close"
- tapOn:
    id: "paywall-close"

subscriptions/balance/05-dismissal-offer.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance (checklist G4): the 50%-off offer opens when the paywalls closed add up to exactly 15
# (`paywall.discount_50_after_dismissals`), and not again at 16. The paywall here is the one Profile
# opens (screen "profile"), so the offer it leads to is `sale-off-50-screen-profile`.
# Launch 1 of a clean install owes no launch paywall, so every close below is one of ours.
# Numbers checked against the arm's config by src/domain/__tests__/e2e-subscription-expectations.test.ts:
#   DISMISSALS: "15"
- runFlow: ../../subflows/launch-app-clean.yaml
- runFlow: ../../subflows/to-song-list.yaml

# Closes 1 to 14: no offer after any of them.
- repeat:
    times: 14
    commands:
      - runFlow: ../../subflows/open-profile-paywall.yaml
      - extendedWaitUntil:
          visible:
            id: "paywall-screen-profile"
          timeout: 30000
      - tapOn:
          id: "paywall-close"
      - runFlow:
          file: ../../subflows/sleep.yaml
          env:
            MS: "2500"
      - assertNotVisible:
          id: "sale-off-50-close"

# Close 15: the offer.
- runFlow: ../../subflows/open-profile-paywall.yaml
- extendedWaitUntil:
    visible:
      id: "paywall-screen-profile"
    timeout: 30000
- tapOn:
    id: "paywall-close"
- extendedWaitUntil:
    visible:
      id: "sale-off-50-screen-profile"
    timeout: 15000
- tapOn:
    id: "sale-off-50-close"

# Close 16: no offer.
- runFlow: ../../subflows/open-profile-paywall.yaml
- extendedWaitUntil:
    visible:
      id: "paywall-screen-profile"
    timeout: 30000
- tapOn:
    id: "paywall-close"
- runFlow:
    file: ../../subflows/sleep.yaml
    env:
      MS: "4000"
- assertNotVisible:
    id: "sale-off-50-close"

subscriptions/balance/06-vip-offer.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance (checklist G5): pressing a VIP song (the mock catalog's `e2e-vip`) opens the paywall
# (`paywall-screen-song`); the 2nd press of a session opens the 50%-off offer
# (`sale-off-50-screen-vip_offer`), at most once a session; a new session counts again.
# Numbers checked against the arm's config by src/domain/__tests__/e2e-subscription-expectations.test.ts:
#   VIP_OFFER_AFTER: "2"  VIP_OFFER_PER_SESSION: "1"
- runFlow: ../../subflows/launch-app-clean.yaml
- runFlow: ../../subflows/to-song-list.yaml
- scrollUntilVisible:
    element:
      id: "song-row-premium-e2e-vip"
    direction: DOWN
    timeout: 20000

# Session 1, press 1: the paywall.
- tapOn:
    id: "song-row-premium-e2e-vip"
- extendedWaitUntil:
    visible:
      id: "paywall-screen-song"
    timeout: 30000
- tapOn:
    id: "paywall-close"
- runFlow:
    file: ../../subflows/sleep.yaml
    env:
      MS: "2000"
# Press 2: the offer.
- tapOn:
    id: "song-row-premium-e2e-vip"
- extendedWaitUntil:
    visible:
      id: "sale-off-50-screen-vip_offer"
    timeout: 30000
- assertNotVisible:
    id: "paywall-cta"
- tapOn:
    id: "sale-off-50-close"
- runFlow:
    file: ../../subflows/sleep.yaml
    env:
      MS: "2000"
# Press 3: the paywall again (one offer a session).
- tapOn:
    id: "song-row-premium-e2e-vip"
- extendedWaitUntil:
    visible:
      id: "paywall-screen-song"
    timeout: 30000
- assertNotVisible:
    id: "sale-off-50-close"
- tapOn:
    id: "paywall-close"

# Session 2: press 1 the paywall, press 2 the offer again.
- runFlow: ../../subflows/launch-app.yaml
- runFlow: ../../subflows/to-song-list.yaml
- scrollUntilVisible:
    element:
      id: "song-row-premium-e2e-vip"
    direction: DOWN
    timeout: 20000
- tapOn:
    id: "song-row-premium-e2e-vip"
- extendedWaitUntil:
    visible:
      id: "paywall-screen-song"
    timeout: 30000
- tapOn:
    id: "paywall-close"
- runFlow:
    file: ../../subflows/sleep.yaml
    env:
      MS: "2000"
- tapOn:
    id: "song-row-premium-e2e-vip"
- extendedWaitUntil:
    visible:
      id: "sale-off-50-screen-vip_offer"
    timeout: 30000
- tapOn:
    id: "sale-off-50-close"

subscriptions/balance/07-default-paywall.yaml

Source at this commit

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"

subscriptions/balance/08-home-return-paywall.yaml

Source at this commit

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"

subscriptions/balance/09-replay-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - balance
---
# balance (checklist G8): the 3rd replay of the same song (`replay_paywall_threshold`, 3) opens the paywall
# on that run's result (`paywall-screen-replay`), once the result has revealed; replays 1 and 2 do not.
# Four song starts, under the default paywall's 6; no return to the list, so no home-return paywall.
#   REPLAYS: "3"
- runFlow: ../../subflows/launch-app-clean.yaml
- runFlow: ../../subflows/to-song-list.yaml
- runFlow:
    file: ../../subflows/play-mock-song.yaml
    env:
      SONG_ID: "e2e-play"
      FIRST_NOTE_DELAY_MS: "3000"

# Replays 1 and 2: no paywall on their results.
- repeat:
    times: 2
    commands:
      - extendedWaitUntil:
          visible:
            id: "session-action-replay"
          timeout: 20000
      - tapOn:
          id: "session-action-replay"
      - runFlow: ../../subflows/play-mock-notes.yaml
      - extendedWaitUntil:
          visible:
            id: "session-result-score"
          timeout: 30000
      - runFlow:
          file: ../../subflows/sleep.yaml
          env:
            MS: "8000"
      - assertNotVisible:
          id: "paywall-screen-replay"

# Replay 3: the paywall on its result.
- tapOn:
    id: "session-action-replay"
- runFlow: ../../subflows/play-mock-notes.yaml
- extendedWaitUntil:
    visible:
      id: "paywall-screen-replay"
    timeout: 30000
- tapOn:
    id: "paywall-close"

subscriptions/friendly/01-post-onboarding-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - friendly
---
# friendly: the paywall after onboarding (portrait) sells the 3-day free trial (`paywall.trial_intro`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/post-onboarding-paywall.yaml"
    env:
      EXPECT_TRIAL: "1"

subscriptions/friendly/02-user-opened-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - friendly
---
# friendly: the paywall a player opens from Profile (landscape) sells the 3-day free trial (`paywall.trial_user_opened`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/user-opened-paywall.yaml"
    env:
      EXPECT_TRIAL: "1"

subscriptions/friendly/03-launch-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - friendly
---
# friendly: the paywall a cold launch owes from the 2nd session opens (`paywall.launch_paywall`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/launch-paywall.yaml"
    env:
      EXPECT_PAYWALL: "1"

subscriptions/very_aggressive/01-post-onboarding-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - very_aggressive
---
# very_aggressive: the paywall after onboarding (portrait) does not sell the free trial (`paywall.trial_intro`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/post-onboarding-paywall.yaml"
    env:
      EXPECT_TRIAL: "0"

subscriptions/very_aggressive/02-user-opened-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - very_aggressive
---
# very_aggressive: the paywall a player opens from Profile (landscape) does not sell the free trial (`paywall.trial_user_opened`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/user-opened-paywall.yaml"
    env:
      EXPECT_TRIAL: "0"

subscriptions/very_aggressive/03-launch-paywall.yaml

Source at this commit

appId: ${APP_ID}
tags:
  - subscriptions
  - very_aggressive
---
# very_aggressive: the paywall a cold launch owes from the 2nd session does not open (`paywall.launch_paywall`).
# The expectation below is checked against the arm's real config by
# src/domain/__tests__/e2e-subscription-expectations.test.ts.
- runFlow:
    file: "../../subflows/launch-paywall.yaml"
    env:
      EXPECT_PAYWALL: "0"