Menu

1 / 2

React Native E2E Tests with Maestro and Playwright on Expo

DEV Community: reactnative·Sebastian Gedda·6 days ago
#IGnNANQT
#devtoreactnative#devto#dev#native#scenario
Long article (1578 words) — no AI summary yet.
Reading 0:00
15s threshold

Prequel: How to Mock API Calls in React Native and Expo covered the mocks. This one is about the E2E runners on top of them.

Most Expo teams end up asking the same thing: do I need an Android emulator in CI, or is Playwright on the web build enough? My answer is that you want both, for different reasons. I ran one checkout journey two ways in a small Expo sample app: Playwright against the Expo web build, and Maestro on a native Android release build. The two specs share the journey and the testID s, not a test file.

The full guide, with code, a recording of every step and the sources, is on devxtools.dev: React Native E2E Tests with Maestro and Playwright on Expo . The sample app is in sgedda/devxtools-tutorials .

Tested with: Expo SDK 58.1.0, react-native 0.88.1 (New Architecture), react 19.3.0, react-native-web 0.21.4, react-native-launch-arguments 4.1.1, @playwright/test 1.65.1 (Chromium), Maestro CLI 2.13.0 and Node 22.23.5, on an Android 15 emulator (API 35, x86_64) and Expo Go 58.0.6.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.