Skip to content

Commit fa69d48

Browse files
ajpallaresclaude
andcommitted
feat: add maestro E2E test for purchase through paywall
Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent ec1adf8 commit fa69d48

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

e2e-tests/maestro/config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# config.yaml
2+
3+
executionOrder:
4+
continueOnFailure: false
5+
6+
flows:
7+
- e2e_tests/*
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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"

0 commit comments

Comments
 (0)