Skip to content

Skip test cases list in maestro tests using launch arguments#897

Draft
ajpallares wants to merge 1 commit intoadd-maestro-e2e-test-ci-jobfrom
pallares/maestro-launch-args
Draft

Skip test cases list in maestro tests using launch arguments#897
ajpallares wants to merge 1 commit intoadd-maestro-e2e-test-ci-jobfrom
pallares/maestro-launch-args

Conversation

@ajpallares
Copy link
Copy Markdown
Member

@ajpallares ajpallares commented Apr 8, 2026

Summary

  • Pass e2e_test_flow as a Maestro launchApp argument so the app navigates directly to the target test case screen, bypassing the Test Cases list
  • On iOS, uses a native Objective-C++ plugin (LaunchArgs.mm) to read from UserDefaults via DllImport
  • On Android, uses AndroidJavaObject to read from the activity's intent extras
  • Makes maestro tests faster by skipping the list navigation step
  • The Test Cases list is preserved for manual/local usage

Related PRs

Follows the same pattern as the iOS SDK's maestro app (purchases-ios/Examples/rc-maestro).

Pass e2e_test_flow as a launchApp argument so the app navigates
directly to the target test case screen, making tests faster.
The Test Cases list is preserved for manual/local usage.

Made-with: Cursor
@ajpallares ajpallares added the pr:other Changes to our CI configuration files and scripts label Apr 8, 2026
ajpallares added a commit to RevenueCat/react-native-purchases that referenced this pull request Apr 13, 2026
## Summary
- Pass `e2e_test_flow` as a Maestro `launchApp` argument so the app
navigates directly to the target test case screen, bypassing the Test
Cases list
- Reads the argument via `initialProps` on iOS (UserDefaults) and
Android (intent extras)
- Makes maestro tests faster by skipping the list navigation step
- The Test Cases list is preserved for manual/local usage

## Related PRs
- RevenueCat/purchases-kmp#796
- RevenueCat/purchases-flutter#1714
- RevenueCat/purchases-capacitor#757
- RevenueCat/cordova-plugin-purchases#919
- RevenueCat/purchases-unity#897

Follows the same pattern as the iOS SDK's maestro app
(`purchases-ios/Examples/rc-maestro`).

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:other Changes to our CI configuration files and scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant