feat: migrate Android E2E tests to real device over LAN - #41
Merged
Conversation
Replace emulator-based Android E2E infrastructure with real-device support. The WebSocket host is now configurable via EXPO_PUBLIC_E2E_WS_HOST (baked into the APK at build time), the Appium config targets physical devices via UDID instead of launching an AVD, and the build script requires E2E_WS_HOST to prevent misconfigured builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Real devices take longer to reinstall and initialize the app after session reload. Bump the e2e-mode wait from WAIT_SHORT (10s) to WAIT_MEDIUM (30s) to avoid flaky failures on slower hardware. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…istance Remove the iOS-only guard on swipe-to-delete tests since they now work on real Android devices. Use a relative swipe distance (30% of screen width) instead of a hardcoded 150px for consistency across screen sizes. Also fix the e2e command example in README to remove extraneous --. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EXPO_PUBLIC_E2E_WS_HOSTenv var (baked into APK at build time)appium:avd, addappium:udidandappium:autoGrantPermissionsE2E_WS_HOSTin the Android build script to prevent misconfigured buildsTest plan
pnpm typecheckpassespnpm lintpasses (no new warnings)pnpm test:ci— all 113 unit tests passpnpm e2e:android— verified on Moto G24 (Android 14) real device over LAN🤖 Generated with Claude Code