feat(mobile): device.uninstallApp(id) and device.isAppInstalled(id)
KA
4h ago+355+355+012345678901234567890123456789-11-11-01234567890123456789
What and why
device.uninstallApp(id?)removes an app and resolves to whether it was there, so removing a missing app passes.device.isAppInstalled(id?)checks the device's app list, system apps included. Without an id, both use the pinned app.- Both go through agent-device (
apps.uninstall,apps.list). Removing the buildinstallApppinned, with noapp.bundleIdset, unpins it, soapp.open()asks for a reinstall instead of launching an app that is gone. - Moves the rows in the Appium and Detox migration guides and documents both on the mobile reference page.
Issue
Part of #1855, item device.uninstallApp(id) / device.isAppInstalled(id).
Verified
Ran it locally: yes
e2e run --target ios-simulator tests/device-fixture.e2e.tsinapps/mobile-benchmarkon an iPhone 17 Pro simulator (iOS 26.3), Release build: 14/14 pass, the two new tests included.- Android emulator (API 36.1), Release APK: this suite didn't run here, because every test, the old ones included, failed opening the app in
beforeEachon my overloaded machine. A throwaway test with the same calls (check, uninstall a missing app, uninstall, check, uninstall again, reinstall) passed. pnpm --filter @e2e-dev/mobileunit tests: the two new tests pass.tests/unit/tool-pixels.test.ts > offers pixel verbs after a secret fillfails both with and without this change.
Checklist
- Changeset added (
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only. - Breaking change: title carries
!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md). - Docs updated in the same PR: the
docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it. - Contract change: emitted
.d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures. - Engine contract change (
e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.