Examples
Working projects that show e2e on a real app: copy one to start, or read how it tests what you need. Each page has the project's README and how to run it.
10 examples
Starter apps
The same standalone greeting app on every stack, with three locator tests and two agent tests: one gets a greeting for a name, the other checks the empty-name error. Each installs the published e2e packages from npm.
Vite
React with Vite, tested in Chromium.
- Web
Next.js
Next.js App Router, started by the runner and tested in Chromium.
- Web
Astro
An Astro page with no UI framework, started by the runner and tested in Chromium.
- Web
Angular
A standalone Angular component, started by the runner and tested in Chromium.
- Web
Expo
React Native with Expo, tested on web, iOS, and Android.
- Web
- iOS
- Android
SwiftUI
A native iOS app, tested on an iPhone simulator.
- iOS
Jetpack Compose
A native Android app, tested on an emulator.
- Android
Kotlin Multiplatform
One Compose Multiplatform screen, tested on Android and iOS.
- iOS
- Android
Flutter
A Flutter app, tested on Android and iOS.
- iOS
- Android
.NET MAUI
A .NET MAUI app, tested on Android and iOS.
- iOS
- Android
Run an example
Where an example's page shows an install command, such as npx e2e init --example with-vite, it starts a new project from the example in an empty folder. Then follow its README to install, build, and run it.
Locator tests need no model. Agent tests use Vercel AI Gateway and skip unless AI_GATEWAY_API_KEY is set. To add e2e to your own app, follow the Quickstart.
