File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # config.yaml
2+
3+ executionOrder :
4+ continueOnFailure : false
5+
6+ flows :
7+ - e2e_tests/*
Original file line number Diff line number Diff line change 1+ # This flow tests the purchase through paywall flow.
2+ # It navigates to the purchase screen, verifies initial entitlements,
3+ # presents the paywall, makes a purchase, and verifies entitlements update.
4+
5+ appId : com.revenuecat.maestro.e2e
6+ name : Purchase through paywall
7+
8+ ---
9+ - clearState
10+ - pressKey : home
11+ - launchApp
12+ - extendedWaitUntil :
13+ visible : " Test Cases"
14+ timeout : 30000
15+ - assertVisible : " Test Cases"
16+ - tapOn :
17+ text : " Purchase through paywall"
18+ - extendedWaitUntil :
19+ visible : " Entitlements: none"
20+ timeout : 15000
21+ - assertVisible : " Entitlements: none"
22+ - assertVisible : " Present Paywall"
23+ - tapOn :
24+ text : " Present Paywall"
25+ # Wait for paywall to load
26+ - extendedWaitUntil :
27+ visible : " Subscribe"
28+ timeout : 30000
29+ - tapOn :
30+ text : " Subscribe"
31+ # Handle StoreKit purchase confirmation on iOS simulator
32+ - extendedWaitUntil :
33+ visible : " OK"
34+ timeout : 15000
35+ - waitForAnimationToEnd
36+ - tapOn :
37+ text : " OK"
38+ # Verify entitlements updated after purchase
39+ - extendedWaitUntil :
40+ visible : " Entitlements: pro"
41+ timeout : 15000
42+ - assertVisible : " Entitlements: pro"
43+ - takeScreenshot : " purchase_through_paywall_completed"
You can’t perform that action at this time.
0 commit comments