mirror of
https://github.com/tester-army/e2e.git
synced 2026-11-21 03:05:26 +08:00
* docs: add a Next.js guide page
One page takes a Next.js developer from `e2e init` to CI: `next dev`
locally and `next start` on the build in CI from one config, the port,
`reuseExisting`, and the Next.js problems (`allowedDevOrigins` on
127.0.0.1, the route announcer that `getByRole('alert')` also matches, a
webpack watcher that reads `.e2e/`), plus the `create-next-app` starter
and the Vercel template. The hydration accordion moves here from web.mdx;
web, cache, and example-projects link to the page, with ja and zh
translations, and the e2e skill's setup reference carries the same
guidance.
Refs ENG-1378
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: move the Next.js page into a Frameworks group
Next.js is not a platform like web, mobile, or desktop, so the page moves
to docs/frameworks/nextjs.mdx under a new Frameworks navigation group. The
web page no longer points at it from the app URL paragraph.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
69 lines
3.5 KiB
Plaintext
69 lines
3.5 KiB
Plaintext
---
|
|
title: Example projects
|
|
description: Run standalone e2e examples with Vite, Next.js, Astro, Angular, Expo, SwiftUI, Jetpack Compose, Kotlin Multiplatform, Flutter, and .NET MAUI.
|
|
"og:image": "https://e2e.com/docs/images/og/example-projects.png?v=dc027fe862"
|
|
"twitter:image": "https://e2e.com/docs/images/og/example-projects.png?v=dc027fe862"
|
|
---
|
|
|
|
Each example is a standalone greeting app with three locator tests and two
|
|
agent tests. One agent test gets a greeting for a name; the other checks the
|
|
empty-name error. Each installs the published e2e packages from npm.
|
|
|
|
## Pick an example
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Vite" icon="/images/examples/vite.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-vite" cta="View example" arrow>
|
|
React with Vite, tested in Chromium.
|
|
</Card>
|
|
<Card title="Next.js" icon="/images/examples/nextjs.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-next" cta="View example" arrow>
|
|
Next.js App Router, started by the runner and tested in Chromium.
|
|
</Card>
|
|
<Card title="Astro" icon="/images/examples/astro.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-astro" cta="View example" arrow>
|
|
An Astro page with no UI framework, started by the runner and tested in Chromium.
|
|
</Card>
|
|
<Card title="Angular" icon="/images/examples/angular.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-angular" cta="View example" arrow>
|
|
A standalone Angular component, started by the runner and tested in Chromium.
|
|
</Card>
|
|
<Card title="Expo" icon="/images/integrations/expo.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-expo" cta="View example" arrow>
|
|
React Native with Expo, tested on web, iOS, and Android.
|
|
</Card>
|
|
<Card title="SwiftUI" icon="/images/examples/swiftui.png" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-swiftui" cta="View example" arrow>
|
|
A native iOS app, tested on an iPhone simulator.
|
|
</Card>
|
|
<Card title="Jetpack Compose" icon="/images/examples/jetpack-compose.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-compose" cta="View example" arrow>
|
|
A native Android app, tested on an emulator.
|
|
</Card>
|
|
<Card title="Kotlin Multiplatform" icon="/images/examples/kotlin.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-kotlin-multiplatform" cta="View example" arrow>
|
|
One Compose Multiplatform screen, tested on Android and iOS.
|
|
</Card>
|
|
<Card title="Flutter" icon="/images/examples/flutter.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-flutter" cta="View example" arrow>
|
|
A Flutter app, tested on Android and iOS.
|
|
</Card>
|
|
<Card title=".NET MAUI" icon="/images/examples/dotnet.svg" href="https://github.com/e2e-inc/e2e/tree/main/examples/with-maui" cta="View example" arrow>
|
|
A .NET MAUI app, tested on Android and iOS.
|
|
</Card>
|
|
</CardGroup>
|
|
|
|
## Run an example
|
|
|
|
Follow the project's README to install, build, and run it. The config and
|
|
tests live beside the app, in an `e2e/` folder for the native, Flutter, and
|
|
.NET MAUI projects.
|
|
|
|
The locator tests need no model. The agent tests use Vercel AI Gateway and
|
|
skip unless `AI_GATEWAY_API_KEY` is set.
|
|
|
|
To start a new Next.js app from its example with `create-next-app`, see
|
|
[Next.js](/frameworks/nextjs#start-a-new-app).
|
|
|
|
## Next
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Quickstart" icon="rocket" href="/quickstart">
|
|
Add e2e to your own app.
|
|
</Card>
|
|
<Card title="Models" icon="brain" href="/models">
|
|
Use a different provider, a subscription, or a local model.
|
|
</Card>
|
|
</CardGroup>
|