Skip to main content
Start with npx quiesco doctor: it checks the tools and the project setup and says how to fix each problem. Below are the failures it cannot see, by symptom.

The app does not connect (CONNECT_TIMEOUT)

The message lists what to check. Most often:
  • The app is not an e2e build. The JS bundle and the native app must both be built with EXPO_PUBLIC_QUIESCO=1 (Metro: EXPO_PUBLIC_QUIESCO=1 npx expo start; native: the variable must be set at expo prebuild too). Without it the agent is the no-op stub.
  • The app does not render <QuiescoRoot>. The agent connects from it. npx quiesco doctor checks the root layout, the entry and the component the entry registers.
  • metro.config.js does not use withQuiesco(), or Metro was started before you added it (the Metro config is read at start-up: restart Metro).
  • Android: the host port is forwarded with adb reverse automatically; a physical device also needs USB debugging authorized. Ports your app calls on localhost need apps.android.reversePorts.
  • A dev client shows its launcher instead of the app: Metro is not running at devClient.metroUrl.

No element is found, in every scenario

No React renderer registered with the Quiesco DevTools hook in the app log means the agent was set up after React Native’s renderer. withQuiesco() in metro.config.js runs the agent’s hook before React Native starts; make sure it wraps the config (in release / EAS builds too) and that @quiesco/agent is the first import of the entry file.

The app shows old code

Quiesco warns when the app’s JS bundle cannot have your latest changes: Metro started with CI set (Expo then starts it without a file watcher), or a one-off bundle (expo export) older than a source file in the project (test code such as features/, e2e/ or *.test.ts, and tool configs at the project root, do not count). Start Metro without CI, or build the bundle again. quiesco doctor also warns when CI is set in your terminal. When quiesco test uses a Metro it did not start and the agent cannot say how the bundle was built, it warns that this Metro runs with an unknown config: it was started before you upgraded Quiesco or added withQuiesco(), by another tool, or without EXPO_PUBLIC_QUIESCO=1. Restart it with EXPO_PUBLIC_QUIESCO=1 npx expo start, or stop it so that quiesco test starts its own. Metro without Watchman can miss file changes (after git checkout, or files written by scripts) and keep serving the old bundle. Restart Metro with --clear, or install Watchman. For Android release builds, Gradle does not notice changes in workspace packages: delete android/app/build/generated/assets/react/release before building.

SYNC_TIMEOUT

The app never became idle; the error lists every busy tracker. See synchronization for each case (endless requests, timer loops, animations). For a screen with an endless animation, pass { sync: false } to that step’s calls. If the frame-stable line says very few frames were sampled in the time waited, the device was starved (an emulator on an overloaded machine), not animating. Close other simulators / emulators. If it says the same change went back and forth, with an element added and removed, after a scrollTo or a swipe on a list, the list keeps adding and removing an item at the edge of its render window. Raising timeoutMs does not help: give the FlatList getItemLayout, or make its rows the same height (synchronization).

ELEMENT_OBSCURED

A real touch would hit something else. The error names it (obscuredBy; on iOS the native hit chain). Typical causes: a dialog or sheet still open, a toast, content under a translucent navigation bar (iOS 26+), an element still animating into place. A software keyboard over the target is dismissed automatically. Elements React Native draws over the app outside <QuiescoRoot> count too: LogBox’s toast is named as such (below), anything else as “drawn over the app outside <QuiescoRoot>”. On iOS, (the touch would reach UIView) with a “Refreshing…” bar at the top of failure.png is the dev client reloading after a file Metro watches changed. Something writes into the project while the tests run: usually artifacts in a directory other than artifacts/ (pass the same path to withQuiesco(config, { artifactsDir }) and restart Metro), or generated files of your own (add them to resolver.blockList). In parallel runs one worker’s screenshots then break another worker’s taps.

LogBox covers the app

In a dev build, an app’s console.error opens a LogBox toast at the bottom of the screen (“Console Error”, or the full LogBox once tapped), and taps there then fail with ELEMENT_OBSCURED naming React Native’s LogBox (on iOS and Android). Quiesco clears LogBox on every soft reset (appErrors.logBox: 'clear'), so the next scenario starts without it, and the failure message of the scenario names the error (The app logged a console.error in this scenario; the last: …, all of them in app-errors.txt). Fix the error in the app; to keep LogBox from showing at all while testing, set appErrors.logBox: 'ignore' (errors still reach the failure message). LogBox’s source and call stack start at the app’s line: withQuiesco() collapses the frames of the agent, which forwards console.*.

”… isn’t responding” on Android (parallel runs)

Quiesco warns Android showed "com.android.systemui isn't responding" over the app; Quiesco chose Wait: the machine runs more devices than it can carry (each worker is a full emulator). Quiesco answers these dialogs so the run goes on, but run fewer workers (--workers, parallel.md). When the dialog is for your app (<package> itself isn't responding), Quiesco leaves it: the app hung.

A scenario passes alone but fails in parallel runs

Workers run their own share of the scenarios in their own order, each on a fresh device. A scenario that relied on an earlier one (a permission granted, data left behind) has to set that up in its own Given steps. On iOS, sendNotification reports “may not show notifications” when the app was never allowed to on that simulator.

AGENT_TIMEOUT

The agent did not answer: the app’s JS thread is blocked by a long synchronous task, or the app crashed. Check the app log (forwarded at logLevel) and the device log.

APP_ERROR

An uncaught error in the app fails the current step — it is usually a real bug. Known harmless framework reports can be ignored with appErrors.ignore (configuration). A console.error does not fail the step; a failure later in the scenario names it (LogBox covers the app).

iOS

  • “Save Password?” covers the app after a login form: keep devices.ios.disablePasswordAutoFill enabled (the default).
  • simctl cannot find the simulator: set devices.ios.device (and os when several runtimes have that device), or boot one.
  • The camera is not granted: the simulator cannot pre-grant it (see permissions); avoid the system dialog in tests, or accept it in a step. Notifications can be pre-granted (config permissions, before the app starts).

Android

  • Everything is slow, the Mac’s fans spin, qemu-system uses 400 % CPU: the emulator renders on the CPU (lavapipe / swiftshader; see hw.gpu.mode in the AVD’s hardware-qemu.ini). On macOS the emulator picks lavapipe for an AVD set to auto. Quiesco boots emulators with -gpu host there and warns when it reuses one that renders on the CPU: restart that emulator with -gpu host (or let Quiesco boot it). With two such emulators, Android’s system server can hang for a minute and be restarted by its watchdog.
  • The emulator restarts about 30 s after booting: a stale quick-boot snapshot. Quiesco cold-boots the emulators it starts; an emulator you started from Android Studio may still load a snapshot — use “Cold Boot Now” once.
  • “Activity class does not exist” right after boot: the user was not unlocked yet; Quiesco waits for it, but a device stuck in that state needs adb reboot.
  • “The app could not be started” (am start failed): the message says whether the package (apps.android.package) is installed and whether the dev client’s scheme opens it. Usually the build has other IDs than quiesco.config.mts: Expo’s prebuild takes them from app.json, and uses its own defaults when they are missing there. npx quiesco doctor compares them; npx quiesco@latest init --upgrade writes missing IDs into app.json and the config. Then build again.
  • A permission is not granted: Android grants only permissions declared in the manifest (expo.android.permissions).
  • No software keyboard appears: emulators usually have a hardware keyboard. See platform differences.

Web

  • @quiesco/web / Playwright not found: npm i -D @quiesco/web playwright and npx playwright install chromium (or firefox / webkit: the devices.web.browser you run). Native-only projects do not need them.
  • Cannot launch webkit / firefox: that browser is not installed for this Playwright version: npx playwright install webkit. npx quiesco doctor checks the configured browser.
  • WebKit: the app starts again after setPermission('location', …): expected. A WebKit page keeps the location answer it first got, so Quiesco relaunches the app (data kept) for the change to apply (browsers).
  • WebKit: text copied in the app is not in the Mac’s clipboard (or the other way round): in WebKit the clipboard is kept by Quiesco, text only, shared by the page and app.clipboard (browsers).
  • The first navigation to a lazy route fails with “Requiring unknown module”: a benign Expo Router report that Quiesco ignores by default.

unknown command or mixed Quiesco versions

Quiesco’s packages (quiesco, @quiesco/*) are released together and only work at the same version. npx quiesco doctor checks this and the commands your scripts use. To upgrade, run npx quiesco@latest init --upgrade (upgrading a project): it installs every Quiesco package at that version and updates the files older versions wrote. Or install the same version of every Quiesco package in one command yourself, e.g. pnpm add -D quiesco@0.4.0 @quiesco/core@0.4.0 ….
  • ^0.x does not reach the next minor: ^0.3.0 allows 0.3.x but not 0.4.0. Upgrade explicitly.
  • pnpm’s minimumReleaseAge: by default pnpm 12 skips versions published less than a day ago when it resolves a range or latest, and takes an older one instead: on the day of a release, pnpm add -D quiesco installs the previous version. An exact version (quiesco@0.4.0, which quiesco init uses) is installed and added to minimumReleaseAgeExclude in pnpm-workspace.yaml. Setting minimumReleaseAge yourself makes pnpm ask first (minimumReleaseAgeStrict then defaults to true).

Still stuck

npx quiesco tree shows what the agent sees; this.app.getIdleState() shows what is busy right now. Failed scenarios carry a screenshot, the element tree and the tracker states in the cucumber report.