appId: ${APP_ID}
---
# Buying No Ads from the song list's promo row (it sells `shop.noads_banner.product` of the arm's tier),
# with the e2e store (the purchase succeeds) and the e2e ads (E2E_ADS=1):
# ${PROMO_ID} the product the promo sells: after the purchase the Shop lists it as owned
# (`shop-lifetime-owned-<id>`, a lifetime pack)
# Then the promo row is gone, and a song shows no interstitial and no banner (expect-no-ads.yaml).
- runFlow: launch-app-clean.yaml
- runFlow: to-song-list.yaml
# The whole row is one accessible button (`remove-ads-promo`): its price pill (`remove-ads-promo-cta`)
# is not in the accessibility tree, so tap the row — the same purchase.
- scrollUntilVisible:
element:
id: "remove-ads-promo"
timeout: 15000
- tapOn:
id: "remove-ads-promo"
- extendedWaitUntil:
notVisible:
id: "remove-ads-promo"
timeout: 30000
- runFlow: expect-no-ads.yaml
- tapOn:
id: "session-action-songs"
- extendedWaitUntil:
visible:
id: "songs-search-input"
timeout: 60000
- tapOn:
id: "tab-button-shop"
- extendedWaitUntil:
visible:
id: "shop-lifetime-owned-${PROMO_ID}"
timeout: 30000