test: adapt FixureHelper to run with appium and local runs#29796
test: adapt FixureHelper to run with appium and local runs#29796christopherferreira9 wants to merge 11 commits into
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key findings:
Since all changes are in the Playwright/Appium test infrastructure (separate from Detox), and no app source code was modified, no Detox E2E test tags are required. The changes do not affect any user-facing functionality. Performance Test Selection: |
|



Description
This PR adapts the FixtureHelper (
withFixtures) to work properly with appium and playwright.Main changes:
launchApputility insidewithFixturesnow sends launchArgs so that FixtureServer and other resources can properly be usedMockServeris completely tool agnosticadbandxcrunwith an abstract CommandHandlerPIXEL_XL_API_34is not translated in the proper serial asemulator-5554withFixtureshas been added to be used as a guide for debuggingbuildPathis not provided - Framework checks for installed app, deletes app data and launches the app. Throws if the app is not installed.buildPathis provided - App is uninstalled and installed back. Throws if the artifact does not exist.Introduction of test shims:
This PR also adds a Playwright-only Node shim so
FixtureBuildercan load in Playwright without changing app runtime behavior.We need this shim mechanism because some app dependencies patch CommonJS packages to call native modules such as
@metamask/native-utils. Those calls are valid in the mobile app, but Playwright loads the same dependency graph in Node where React Native/Nitro native modules are unavailable.Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
N/A
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist