For AI agents: the complete documentation index is available at ../../../llms.txt, the full documentation bundle is available at ../../../llms-full.txt, and this page is available as Markdown at ../../../quality/scripts/subflows/expect-no-ads.md.

subflows/expect-no-ads.yaml

Source

appId: ${APP_ID}
---
# After a No Ads purchase: back on the song list, one more song — no interstitial on the song-row tap
# or at its end, no banner on its result, no promo row on the list.
- runFlow: dismiss-offers.yaml
- runFlow:
    when:
      visible:
        id: "session-action-songs"
    commands:
      - tapOn:
          id: "session-action-songs"
- runFlow: to-song-list.yaml
- assertNotVisible:
    id: "remove-ads-promo"
- tapOn:
    id: "song-row-play-e2e-play"
- runFlow:
    file: sleep.yaml
    env:
      MS: "6000"
- assertNotVisible:
    id: "e2e-ad-interstitial"
- runFlow: play-mock-notes.yaml
# No ad now, so the result itself comes (with ads a song-end interstitial would open first).
- extendedWaitUntil:
    visible:
      id: "session-result-score"
    timeout: 60000
- runFlow:
    file: sleep.yaml
    env:
      MS: "6000"
- assertNotVisible:
    id: "e2e-ad-interstitial"
- assertNotVisible:
    id: "e2e-banner"