Skip to content

feat: add maestro E2E test app#857

Draft
ajpallares wants to merge 10 commits intomainfrom
e2e-tests-app
Draft

feat: add maestro E2E test app#857
ajpallares wants to merge 10 commits intomainfrom
e2e-tests-app

Conversation

@ajpallares
Copy link
Copy Markdown
Contributor

@ajpallares ajpallares commented Feb 27, 2026

Summary

Adds a Maestro E2E test app under e2e-tests/MaestroTestApp/ — a minimal Cordova app used by automated Maestro flows to verify the RevenueCat purchase integration.

  • Two views: "Test Cases" list and "Purchase through paywall" (fetches offerings and presents a custom paywall overlay for purchasing)
  • Widget ID com.revenuecat.automatedsdktests
  • API key placeholder (MAESTRO_TESTS_REVENUECAT_API_KEY) replaced at CI time via sed
  • Local SDK resolution via file: reference (same mechanism as examples/cordova-sample)
  • Errors from offerings/purchase calls are surfaced in the UI (not just logged) for Maestro screenshot capture
  • Includes a README and committed package-lock.json

Counterpart PRs: react-native-purchases#1635, purchases-flutter#1654, purchases-capacitor#699, purchases-unity#836, purchases-kmp#708

Follow-up PRs (stacked)

  • #858 — Maestro test flows (YAML)
  • #859 — CircleCI jobs to run the tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…r registration

Move onCustomerInfoUpdated listener to deviceready handler so it's
registered once instead of on every showPurchaseScreen call. Add a
custom paywall overlay with a "Subscribe" button so the maestro YAML
tapOn: "Subscribe" works without requiring RevenueCatUI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ajpallares ajpallares added pr:other and removed pr:feat A new feature labels Feb 27, 2026
@RevenueCat-Danger-Bot
Copy link
Copy Markdown

RevenueCat-Danger-Bot commented Mar 25, 2026

1 Error
🚫 This PR increases the size of the repo by more than 250.00 KB (increased by 12886.84 KB).
1 Message
📖 You can bypass the size check failure by adding the label "danger-bypass-size-limit". Please exercise caution.

Generated by 🚫 Danger

- Fix cordova-plugin-purchases file: reference to point to the repo
  root (../../) instead of a temp directory path
- Commit package-lock.json for reproducible CI builds (force-added
  since root .gitignore excludes it)
- Add README with build/run instructions and API key setup

Made-with: Cursor
- Show errors in a visible <p id="error-message"> element instead of only
  console.error, so Maestro can capture failures in screenshots

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants