feat(mobile): device.uninstallApp(id) and device.isAppInstalled(id)

KA
4h ago
+355-11

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 build installApp pinned, with no app.bundleId set, unpins it, so app.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.ts in apps/mobile-benchmark on 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 beforeEach on 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/mobile unit tests: the two new tests pass. tests/unit/tool-pixels.test.ts > offers pixel verbs after a secret fill fails 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/**/*.mdx page for the behavior, and skills/e2e/ if the skill describes it.
  • Contract change: emitted .d.ts reviewed, tests/types/sdk-types.ts updated; wire change edits the schema and both fixtures.
  • Engine contract change (e2e/engine): changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile.