# Subscription Paywall Test
# Tests the paywall subscription flow
# This test requires a fresh install (onboarding not completed)

appId: com.millianlmx.tabatafit
name: Subscription Paywall

---
# Navigate through onboarding to paywall (steps 1-5)
- tapOn: "onboarding-problem-cta"
- tapOn: "barrier-no-time"
- tapOn: "onboarding-empathy-continue"
- tapOn: "onboarding-solution-cta"
- tapOn: "onboarding-wow-cta"

# Enter name to enable continue
- tapOn: "name-input"
- inputText: "Premium User"
- tapOn: "onboarding-personalization-continue"

# On paywall screen
- assertVisible: "plan-yearly"
- assertVisible: "plan-monthly"
- assertVisible: "subscribe-button"
- assertVisible: "skip-paywall"

# Test plan selection
- tapOn: "plan-monthly"
- assertVisible: "subscribe-button"

# Test restore purchases
- tapOn: "restore-purchases"

# Skip paywall
- tapOn: "skip-paywall"

# Verify home screen
- assertVisible: "program-card-upper-body"
