Skip to main content
The same features, steps and this.app calls run on all three platforms. What differs is underneath:

Permissions

permissions in the config are granted before the app launches, so no system dialog interrupts a scenario. A permission a platform cannot pre-grant is skipped with a warning.
  • Android grants only permissions the app declares in its manifest (expo.android.permissions in app.json); others are reported as a warning.
  • iOS notifications: simctl privacy has no service for them. Quiesco writes the app’s entry in the simulator’s notification settings (Library/BulletinBoard/VersionedSectionInfo.plist, as Detox’s applesimutils does) and restarts SpringBoard to read it. That happens only before the app starts (at session start, and after relaunch({ reinstall | clearData })), and only when the setting is not already “allowed”: a reused simulator without reinstalls pays nothing, otherwise about 10 s. Quiesco then waits until SpringBoard and PosterBoard have settled: restarting SpringBoard again while PosterBoard is still setting up has corrupted its data on the simulator (it then crashes at every start; issue #113). setPermission('notifications', …) is not supported while the app runs; 'reset' reinstalls the app.
  • If the pre-grant fails, Quiesco answers the app’s notifications prompt with “Allow” when it comes across it, and logs that it did. Weaker than a pre-grant: until the app asks, it sees “not determined”.
  • iOS still needs the usage description (NSLocationWhenInUseUsageDescription, …) in Info.plist (expo.ios.infoPlist) for the app to request the permission at all.

iOS

  • Quiesco turns off password AutoFill on the simulator (devices.ios.disablePasswordAutoFill), otherwise iOS covers the app with “Save Password?” after a login form.
  • Dev clients are launched with the dev menu, its onboarding, the floating button and its shake gesture switched off (a shake() would otherwise open the dev menu over the app; the app’s own shake handlers still get it).
  • On iOS 26+ screen content can be laid out under a translucent navigation bar; elements there are reported as covered (ELEMENT_OBSCURED). Use the header height (useHeaderHeight()) or an opaque header.
  • After keyboard activity iOS ignores touches for a moment; the native tracker waits for it.
  • Wheel pickers: the column views are private UIKit classes laid out with 3D transforms; Quiesco finds where each column takes touches by hit testing along the selection band. A turn waits until the wheel stops (UIDatePicker reports its date only then), so a date takes a few seconds.
  • iOS 26+ sliders: a short or reversing drag moves the thumb less than the finger; adjustSlider drags one way with a run-up and corrects from the value read back.
  • relaunch({ url }): expo-router reads the start URL from expo-linking (getLinkingURL()), which @quiesco/native sets from -quiescoUrl. React Native’s own Linking.getInitialURL() only reads launch options and returns null for it. The URL is set on the main queue right after the native modules are created; in practice that is before the first render.
  • In the background iOS suspends the app’s JS after a few seconds; element calls fail at once with APP_IN_BACKGROUND rather than waiting for an answer.
  • Clipboard: text put there by another process (simctl pbcopy) makes iOS ask the user before the app may paste it, and the app’s read hangs until someone answers. clipboard.set() therefore writes from inside the app (@quiesco/native ≥ Phase 6.6); the app reads what it wrote itself without asking.
  • Biometrics: a failed Face ID / Touch ID attempt leaves the system’s retry alert (“Try Face ID again” / “Cancel”) over the app; the app’s authenticateAsync resolves only once it is answered, and element calls cannot reach the app meanwhile. match() does not dismiss it.
  • shake() uses the Darwin notification Simulator’s Device > Shake posts; UIKit turns it into a real shake motion event (iOS 26 no longer has the private -[UIApplication _sendMotionEnded:] Detox used).
  • setNetwork('offline'): the simulator shares the Mac’s network and has no switch of its own. Only the agent fails the app’s connections (sent to an .invalid host, so they fail with React Native’s own “Network request failed”); NetInfo keeps reporting the Mac’s network.

Android

  • Emulators that Quiesco boots start cold (-no-snapshot-load, about 14 s): a quick-boot snapshot taken before the app was reinstalled makes Android restart about 30 s after booting.
  • The app is force-stopped before it is reinstalled (Android 17 otherwise relaunches it without the connection parameters).
  • ACCESS_LOCAL_NETWORK (Android 17) is granted before launch so the app can reach the host.
  • relaunch({ url }) with a dev client: @quiesco/native makes the link the activity intent’s data (what React Native’s Linking.getInitialURL() and expo-router read) and expo-linking’s initial URL, when its module is created — before the bundle runs. It works the same on every supported Expo SDK (a deep link carrying the bundle URL needs expo-dev-launcher 58).
  • Dev clients: before launching, Quiesco writes expo-dev-menu’s settings (onboarding done, no menu at launch, no floating button, no menu on shake) when the app has none yet, as on iOS. expo-dev-menu before 58 ignores the link’s __expo_disable_* switches and would show its onboarding over the app after pm clear or a fresh install.
  • Ports the app calls on localhost (a mock backend) need apps.android.reversePorts.
  • DateTimePicker and the picker’s dialog / dropdown live in separate windows that in-app touches do not reach: setValue sets them through their callbacks (the date picker by its testID, as it renders no view).
  • Accessibility actions are performed after reading the node info, like TalkBack: React Native’s delegate only handles actions it has listed there.
  • A font-scale or language change recreates the activity (React Native’s default configChanges do not include fontScale / locale). React’s root then remounts inside the same JS context, and expo-router 58’s imperative router stops working (“unavailable before the first render has finished”) until the app restarts. So setFontScale / setLocale start the app again (data kept), and so does undoing them before the next scenario.
  • In the background Android pauses React Native’s timers and nothing is drawn; the agent counts the timer, frame and native trackers as idle while the app is not active. A wait for idle then checks the other trackers again on every message from the host (sent every 500 ms while a call is pending), so an action that opens a system dialog still ends, or fails with SYNC_TIMEOUT.
  • Emulators usually have a hardware keyboard, so the software keyboard does not appear while typing. To test keyboard-related behavior: adb shell settings put secure show_ime_with_hard_keyboard 1.
  • setNetwork('offline') turns Wi-Fi and mobile data off for the whole emulator; adb reverse keeps working, so Quiesco, Metro and a mock backend on the host stay reachable — the app’s requests to them fail through the agent. The previous Wi-Fi / data state is restored before the next scenario.
  • adb has no clipboard command: clipboard.* needs @quiesco/native ≥ Phase 6.6 in the app.
  • biometrics.enroll() needs an emulator without a screen lock of its own (Quiesco sets PIN 7357 and removes it, with the fingerprint, before the next scenario). The app goes to the background while Settings enrolls and is brought back. After an unknown finger the sensor is locked for about half a second, longer after several failures in a row (the count only resets on a success).
  • setPermission(p, 'revoke') also clears the permission’s user-set / user-fixed flags: after two denials Android would stop asking, but a revoked permission is asked for again, as on a fresh install.

Web

  • devices.web.browser picks Chromium (default), Firefox or WebKit; all three run the same features (browsers).
  • Viewports come from the config (phone, tablet, desktop…); touch viewports get touch input.
  • A full page load reconnects the agent; the host waits for it without failing the step.
  • Testing only native platforms does not require Playwright; the web provider is loaded on demand.
  • setNetwork('offline') does not use Playwright’s context.setOffline(): it also stops Quiesco’s own WebSocket (the socket stays open but no message arrives). Instead the page’s requests are aborted (routes do not see WebSockets) and CDP Network.overrideNetworkState sets navigator.onLine with real offline / online events; zero throughput also fires navigator.connection’s change, the event NetInfo listens to in Chromium. Firefox and WebKit have no CDP: there navigator.onLine is overridden in the page and offline / online are dispatched (what NetInfo listens to without navigator.connection). A relaunch while offline loads the page first, then goes offline.
  • Device-state read-backs never touch the app’s own MediaQueryList: reading matches on the list that react-native-web’s Appearance listens to makes Chromium skip the change event, and useColorScheme() would never update.
  • No background state: a page driven by Playwright stays visible whatever is tried (another tab in front, a minimized window, CDP lifecycle states, with or without Chromium’s background switches). Tag background scenarios @native.
  • @react-native-community/datetimepicker has no web implementation; use <input type="date"> there (setValue fills it). @react-native-segmented-control’s web / Android implementation does not pass testID on: put the testID on a wrapping View (setValue uses the single control inside it).

Browsers

The same features run in all three. What differs underneath, where Playwright or the browser leaves a gap:
  • drag and adjustSlider move the pointer step by step over their duration and rest 100 ms before the release, in every browser (WebKit would otherwise get all moves at once and drop at the wrong place).
  • Synthetic events are not trusted (isTrusted is false); react-native-gesture-handler and react-native-web’s responder system do not look at it.
  • Pick the browser with an environment variable to run the same suite in each, and use browser tags (@chromium, @firefox, @webkit) for scenarios that only make sense in some of them.
  • npx playwright install chromium firefox webkit installs the browsers; npx quiesco doctor checks the configured one.