Repository navigation
feat(eas): install the target's local build on Expo simulators - #2224
Merged
Merged
Conversation
expoSimulators() installs app.appPath through the session's daemon with installLeasedApp(), a helper @e2e-dev/mobile/lease now exports. device.installApp() skips the target's build when the device provider already installed it, so one install fixture serves local and hosted devices.
A lease's installedApp goes stale after an upgrade install or a worker replacement, so device.installApp() installs as before. deviceSelection moves to bindings.ts so the lease entry does not load the pool. The no-identity error names the fix that applies to its caller.
Contributor
🟢 e2e android agent: 20 passed24 agent steps · 15 replayed from cache · 38 model calls · 231.1k tokens (88% cached) · $0.0125 All 20 tests in 1 file
Tested by e2e 0.24.0 · 5m 49s · android-emulator · run artifacts |
Contributor
🟢 e2e ios: 61 passed, 1 skippedAll 62 tests in 7 files
Tested by e2e 0.24.0 · 7m 28s · ios-simulator · run artifacts |
Contributor
🟢 e2e ios agent: 21 passed, 1 skipped25 agent steps · 12 replayed from cache · 60 model calls · 484.8k tokens (81% cached) · $0.0336 All 22 tests in 1 file
Tested by e2e 0.24.0 · 8m 43s · ios-simulator · run artifacts |
Contributor
🟢 e2e android: 1 flaky, 61 passed, 1 skipped
|
| Test | Time | |
|---|---|---|
| tests/controls.e2e.ts · 1 flaky, 24 passed, 1 skipped | 3m 2s | |
| control inventory › a label query resolves a labeled text field (1 failed attempt first) | 9.3s | |
| 🟢 | control inventory › a labeled field answers name, display value, value reads, fill, and clear | 14.3s |
| 🟢 | control inventory › a placeholder query and attribute reads find the field | 6.9s |
| 🟢 | control inventory › a secure field takes a fill and denies value reads | 8.6s |
| 🟢 | control inventory › press sends a character and Enter through the soft keyboard | 8.7s |
| 🟢 | control inventory › a field autofocuses on mount and focus() moves the focus | 8.3s |
| 🟢 | control inventory › toBeFocused follows the focus | 9.5s |
| 🟢 | control inventory › a switch checks, unchecks, and reports its state | 10.7s |
| 🟢 | control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap | 7.7s |
| 🟢 | control inventory › checkbox and radio roles check, uncheck, and report their state | 13.3s |
| 🟢 | control inventory › a tab role answers getByRole | 4.7s |
| 🟢 | control inventory › a radio group reports the checked option | 8.8s |
| 🟢 | control inventory › buttons report disabled, enabled, and a state that arrives later | 8.2s |
| 🟢 | control inventory › a display: none element is absent rather than hidden, its visible twin attached | 7.4s |
| 🟢 | control inventory › a header answers its accessible name | 4.3s |
| 🟢 | control inventory › a tab row answers count, all, texts, filters, positions, and switching | 5.4s |
| 🟢 | control inventory › a list answers counts, list-form text, reads, and boxes in order | 6.2s |
| ⏭️ | control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…) | |
| 🟢 | control inventory › a long press lands as one | 8.0s |
| 🟢 | control inventory › a double tap lands inside the 300 ms window | 7.6s |
| 🟢 | control inventory › tap({ count: 3 }) lands three presses | 7.4s |
| 🟢 | control inventory › an ambiguous locator fails at once | 5.2s |
| 🟢 | control inventory › screenshot, restart, and clearState reopen the app on its home list | 8.8s |
| 🟢 | refusals › verbs a device never declares are refused before the engine | 4ms |
| 🟢 | refusals › keys the soft keyboard cannot send are refused by the engine | 1.2s |
| 🟢 | refusals › a missing locator fails as not found once its timeout passes | 1.1s |
| 🟢 | tests/device-fixture.e2e.ts · 13 passed | 1m 42s |
| 🟢 | device fixture › setOrientation rotates the window and viewport dimensions | 6.9s |
| 🟢 | device fixture › home leaves the app, openApp brings it back where it was | 6.3s |
| 🟢 | device fixture › foregroundApp sees the home screen after home() | 5.2s |
| 🟢 | device fixture › closeApp then openApp relaunches on the home list | 8.2s |
| 🟢 | device fixture › closeApp leaves the next commands on the same device | 8.1s |
| 🟢 | device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN | 4.6s |
| 🟢 | device fixture › openLink opens the scenario a deep link names | 5.4s |
| 🟢 | device fixture › isAppInstalled finds the app under test and no app that is absent | 4.5s |
| 🟢 | device fixture › uninstallApp removes the app until installApp puts it back | 9.5s |
| 🟢 | device fixture › device.back pops the scenario | 4.8s |
| 🟢 | device fixture › unstable_raw reaches the test session through the raw driver | 3.8s |
| 🟢 | device fixture › setNetwork and setAirplaneMode change what the app sees | 16.0s |
| 🟢 | device fixture › setLocation and clearLocation change what the app reads | 18.3s |
| 🟢 | tests/device.e2e.ts · 6 passed | 47.3s |
| 🟢 | permission prompt › allowing the system dialog enables the microphone | 6.1s |
| 🟢 | permission prompt › a denied prompt recovers once the permission is granted outside | 12.7s |
| 🟢 | sequential onboarding echoes the exact values | 10.4s |
| 🟢 | a shake is sent without an error and leaves the screen readable | 5.0s |
| 🟢 | onboarding rejects a malformed email before advancing | 5.9s |
| 🟢 | dismissing the keyboard over choice controls leaves them as they were | 7.1s |
| 🟢 | tests/flows-lists.e2e.ts · 7 passed | 3m 17s |
| 🟢 | infinite scroll reaches the target item | 30.5s |
| 🟢 | product catalog adds exactly two of the right variant | 9.4s |
| 🟢 | gestures: long-press, then swipe left | 8.4s |
| 🟢 | gestures: double-tap completes the flow | 10.2s |
| 🟢 | sticky chrome: accept below the fold, then continue | 11.8s |
| 🟢 | async states: load, pull to refresh, claim through the toast | 12.3s |
| 🟢 | huge virtualized list reaches row 512 | 1m 54s |
| 🟢 | tests/flows.e2e.ts · 7 passed | 56.4s |
| 🟢 | text inputs unlock the submit button | 6.9s |
| 🟢 | filled text inputs report their values | 6.5s |
| 🟢 | modal flow confirms through the native alert | 10.2s |
| 🟢 | bottom tabs act inside the last tab | 7.1s |
| 🟢 | error recovery retries, then confirms the delete | 9.3s |
| 🟢 | choice controls place the exact order | 7.1s |
| 🟢 | debounced search selects the target once results arrive | 9.3s |
| 🟢 | tests/login-form.e2e.ts · 3 passed | 29.4s |
| 🟢 | login form › rejects a malformed email | 8.1s |
| 🟢 | login form › rejects an unknown account | 8.2s |
| 🟢 | login form › signs in and logs out | 13.1s |
| 🟢 | tests/smoke.e2e.ts · 1 passed | 6.8s |
| 🟢 | home lists the scenarios and opens one | 6.8s |
Tested by e2e 0.24.0 · 10m 55s · android-emulator · run artifacts
okwasniewski
pushed a commit
to abhinavapasok/e2e
that referenced
this pull request
Nov 25, 2026
- mobile and web: permissions: 'all' grants every permission the platform or browser can set (e2e-inc#1918) - mobile: a DeviceProvider can install the app through the lease's daemon with installLeasedApp (e2e-inc#2224)
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.
What
expoSimulators()installs a local build itself. With nobuildIdorapplicationArchiveUrl, the target'sapp.appPathis uploaded to each simulator and installed before the first test, asrevyl(),limrun()ande2b()already do.@e2e-dev/mobile/leaseexportsinstallLeasedApp(request, lease)for any device provider whose devices start without the build.Why
Expo Simulators was the one hosted provider where a local build needed a suite fixture calling
device.installApp(). The same config on Revyl, Limrun or E2B installs the build in the provider (#1947 for Revyl). A suite that moves between them should not need a different fixture.How it works
installLeasedApp()(packages/mobile/src/lease/index.ts:159) is feat(revyl): install local builds on Revyl devices #1947's private install helper, exported and widened: it takes aDeviceLease, connects tolease.daemonwhen the lease names one and to the lease'sstateDirotherwise, selectslease.deviceorlease.deviceId, and returns the lease withinstalledApp. Without anappPathit returns the lease as it is.agentDeviceLeases({ installAppPath })calls it.expoSimulators().acquire(packages/eas/src/provider.ts:203) returnsinstallLeasedApp(request, lease)once the session is ready. The engine then opens the app in warm-up and installs nothing itself.abandon()as a session that never became ready (packages/eas/src/provider.ts:179): it drops the session's idle deadline and stored client, stops the session, and throwssimulator session <id> did not install the target's app.appPath: <reason>.deviceSelectionandDeviceSelectionmove frompool.tstobindings.ts, so the lease entry reuses the engine's selection rule without loading the device pool.installedIdentity()takes the fix to name in its no-identity error. A provider install namesapp.bundleIdonly;device.installApp()keepsinstallApp's app option, which the lease path does not have (review thread on feat(revyl): install local builds on Revyl devices #1947).@e2e-dev/easnow needs@e2e-dev/mobile>=0.12.9, the release that carries the helper. The guard for a mobile that passes noprojectRootis older than that floor and is removed.Dropped: making
device.installApp()skip a build the provider installed. The lease'sinstalledAppgoes stale after an upgrade test installs an older build, or when a replaced worker starts on a device a test uninstalled from, so the skip could leave the wrong build on the device.device.installApp()installs as before, and the docs tell EAS users to remove the fixture. A sound skip needs the device's own build identity and is a separate change.Not in this PR:
e2b()andlimrun()keep their own copies of the install. Moving them toinstallLeasedApp()raises their mobile peer floor, so it is a follow-up.Verified
Ran it locally: yes, on a live Expo Simulators Android session at this head.
expoSimulators({ projectId }),app: { appPath: '<mobile-benchmark app-release.apk>' }, nobundleId, no install fixture.e2e run: the warm-up opened the app the provider installed, the test sawdevice.isAppInstalled('dev.e2e.benchmark')and the home screen, and the session was released.installLeasedApp(): an empty daemon URL in place of the lease's, andplatformalone in place of the device selection, each fail the new lease test.