Files
Folo/apps/mobile/e2e
DIYgod 93e4a3b48f feat: add cross-platform e2e coverage (#4901)
* feat: add cross-platform e2e coverage

* fix: stabilize desktop e2e navigation

* fix: harden desktop e2e read flow

* fix: harden desktop e2e auth and follow flows

* fix: stabilize desktop e2e discover entry flows

* fix: run android e2e in a single shell

* fix: speed up mobile e2e builds in ci

* fix: build android e2e app from mobile workspace

* fix: invoke android gradle build from repo root

* fix: use absolute path for android ci build

* fix: restore android eas build in ci

* fix: target iOS simulator by udid in ci

* fix: align desktop e2e with discover card flow

* fix: reorder web e2e after relogin

* fix: navigate web e2e via real hash url

* fix: close stale settings modal before reopening

* fix: track android maestro flows

* fix: wait for settings router in web e2e

* fix: wait for web settings sync propagation

* fix: stabilize desktop e2e settings flows

* fix: harden desktop e2e regressions

* fix: stabilize desktop e2e selectors

* fix: read desktop entry state from locators

* fix: relax desktop e2e entry assertions

* fix: avoid waiting on missing desktop feed ids
2026-03-10 11:32:00 +08:00
..

Mobile E2E

Requirements

  • Install Maestro CLI.
  • Android: install the app on a booted emulator.
  • iOS: provide a standalone simulator app bundle via MAESTRO_IOS_APP_PATH, or place a local build-*.tar.gz from eas build --local --platform ios --profile e2e-ios-simulator in apps/mobile.
  • Export E2E_EMAIL if you want to reuse a fixed account. Otherwise the runner script creates a unique address.

Commands

pnpm run e2e:doctor
pnpm run e2e:android
pnpm run e2e:ios

iOS Notes

  • pnpm run e2e:ios runs two real journeys in sequence:
    • auth.yaml: register -> sign out -> log in
    • content.yaml: ensure onboarding feed unfollowed -> follow -> timeline/read-unread -> unfollow
  • The iOS runner resets the simulator, disables password autofill prompts, installs the provided app bundle, then executes Maestro.

Environment

  • E2E_EMAIL
  • E2E_PASSWORD
  • MAESTRO_DEBUG_OUTPUT
  • MAESTRO_IOS_APP_PATH
  • EXPO_PUBLIC_E2E_ENV_PROFILE
  • EXPO_PUBLIC_E2E_LANGUAGE