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/shop-entry.md.

subflows/shop-entry.yaml

Source

appId: ${APP_ID}
---
# Where an arm sells No Ads from the song list (`shop.enabled`, `shop.noads_banner.position`):
#   ${EXPECT_SHOP}  "1": the Shop tab and the song list's "Remove forced ads" promo row show; else neither
#   ${PROMO_ROW}    the promo's row: "1" above the first song, "3" below it (the mock list has 3 songs);
#                   "0" when there is no promo
# Each value is checked against the arm's real config (src/data/__tests__/e2e-monetization-flows.test.ts).
- runFlow: launch-app-clean.yaml
- runFlow: to-song-list.yaml
- runFlow:
    when:
      true: ${EXPECT_SHOP == '1'}
    commands:
      - assertVisible:
          id: "tab-button-shop"
      - scrollUntilVisible:
          element:
            id: "remove-ads-promo"
          timeout: 15000
      - runFlow:
          when:
            true: ${PROMO_ROW == '1'}
          commands:
            - assertVisible:
                id: "remove-ads-promo"
                above:
                  id: "song-row-preview-e2e-play"
      - runFlow:
          when:
            true: ${PROMO_ROW == '3'}
          commands:
            - assertVisible:
                id: "remove-ads-promo"
                below:
                  id: "song-row-preview-e2e-play"
- runFlow:
    when:
      true: ${EXPECT_SHOP != '1'}
    commands:
      - assertNotVisible:
          id: "tab-button-shop"
      - assertNotVisible:
          id: "remove-ads-promo"