e2e
Was er macht
Dieser Skill führt die KI durch das Schreiben agentischer End to End Tests für Web und Mobile Apps. Er ist für Entwickler gedacht, die Tests wollen, die beschreiben, was ein Nutzer tut, und prüfen, was auf dem Bildschirm erscheint.
Wann du ihn nutzt
- ✓Wenn du automatische Tests willst, die eine Web App so durchklicken, wie es ein Nutzer täte.
- ✓Wenn du Tests für eine App auf einem iOS Simulator oder einem Android Emulator brauchst.
- ✓Wenn du nach einem Ablauf prüfen willst, dass ein Bildschirm oder eine API das erwartete Ergebnis zeigt.
Link zum Skill
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/e2e/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Schreibe einen End to End Test, der sich in meiner Web App anmeldet und prüft, ob das Dashboard lädt.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI richtet eine Konfigurationsdatei für die App ein, lässt einen Agenten jedes Ziel ausführen und prüft den Bildschirm mit exakten Assertions. Bestätigte Aktionen lassen sich aus einem Cache ohne Modellaufruf wiederholen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
e2e: agentic end-to-end tests in TypeScript
Kortix repository integration
Use pnpm test -- --agentic-only [files...] for this opt-in pilot. The wrapper
checks local listener ownership and rejects skipped or flaky selected tests.
MCP is for inspecting the app and finding locators; run tests through the root
wrapper. The config also checks listener ownership before MCP can start the app.
The MCP server allows one session.
Keep the existing testing and release gates. Do not add a pull-request CI
workflow or a second root test script. Use synthetic local data only. Keep
reports, traces, videos, and caches gitignored.
e2e runs UI tests with agent goals and exact assertions. agent.act drives
one goal; agent.assert, agent.waitFor, and agent.extract judge the
screen. screen, app, browser, and expect make exact interactions and
checks. The replay cache reruns verified actions and checks their recorded end
state without a model call; agent judgments still run live. UI targets use
@e2e-dev/web for browsers or @e2e-dev/mobile for iOS simulators and
Android emulators. A test that takes only app can check an API with fetch
and expect (topic writing-tests). Model sign-in commands are in
setup.
// e2e.config.ts
import type { E2EConfig } from 'e2e';
import { web } from '@e2e-dev/web';
import { gateway } from 'ai';
export default {
targets: [
{
engine: web(),
app: {
url: 'http://127.0.0.1:3000',
command: { executable: 'pnpm', args: ['dev'], log: '.e2e/logs/app.log' },
},
},
],
// The model behind every agent.* step: an AI SDK instance; gateway() from 'ai' reads AI_GATEWAY_API_KEY or a Vercel OIDC token.
agents: {
default: {
model: gateway('openai/gpt-6-luna-fast'),
system: 'You are a thorough QA agent. Verify every outcome on screen.',
},
},
} satisfies E2EConfig;
// tests/billing.e2e.ts
import { test } from '@e2e-dev/web';
import { expect } from 'e2e';
test('a member upgrades to Pro', async ({ app, agent, screen, browser }) => {
await app.open('/settings/billing');
await agent.act('upgrade the workspace to the Pro plan');
await expect(screen.getByRole('status')).toContainText('Pro');
await expect(browser).toHaveURL('/settings/billing');
});
Topics
Read the topic for the job before writing code. The files sit next to this
one; the installed CLI prints the same text with npx e2e guide <topic>
(e2e guide alone prints this page). For anything the topics do not cover,
the full documentation ships in the docs/ directory of the installed e2e
package (node_modules/e2e/docs in a single-package project); a link such as
/reference/cli is docs/reference/cli.mdx.
| Topic | File | Read it when |
|---|---|---|
setup |
references/setup.md | Adding e2e to a project, writing e2e.config.ts, starting the app from the config, mobile targets |
writing-tests |
references/writing-tests.md | Writing or fixing tests: fixtures, locators, actions, matchers, sign-in sessions, the browser fixture |
agent |
references/agent.md | Adding agent.* steps, picking a model, cost and budgets, the replay cache |
running |
references/running.md | CLI flags, reporters, .e2e/report.json, exit codes, CI |
explore |
references/explore.md | Exploring an app toward a goal without a test file: e2e explore, its budgets, verdict, and run.explore |
debugging |
references/debugging.md | A run failed: error codes and their fixes, --headed, --debug, --ai-trace |
mcp |
references/mcp.md | Driving the live app from a coding agent over MCP: e2e mcp, its tools, and the explore-then-write loop |
bug-bash |
references/bug-bash.md | Asked to bug bash, QA, or hunt for bugs across an app or a branch: parallel e2e explore charters, merging findings, proving each with a repro test |
Workflow
- Look at what exists:
e2e.config.tsore2e.config.mts, thetestsglob (defaulttests/**/*.e2e.ts),e2einpackage.json. Nothing there: followsetup. - Learn the screens before writing a test: routes, labels, roles, button text. Semantic locators need the accessible names the app renders, so read the components, o
Häufige Fragen
Braucht er einen Modellschlüssel?
Agentische Urteile brauchen weiterhin ein Modell, und der Skill enthält Schritte zur Anmeldung am Modell. Bestätigte Aktionen lassen sich ohne Modell wiederholen.
Welche Plattformen unterstützt er?
Browser über Playwright sowie Mobile Apps auf iOS Simulatoren und Android Emulatoren.
Kann er auch eine API testen?
Ja. Ein Test, der nur die App nutzt, kann eine API mit fetch und exakten Erwartungen prüfen.
Details
Originalbeschreibung des Autors
Agentic end-to-end tests with e2e, the e2e runner. Covers scaffolding e2e.config.ts, picking the Playwright browser engine or the agent-device mobile engine, starting the app under test from the config, driving flows with agent.act, judging with agent.assert, agent.waitFor, and agent.extract, pinning values with screen, app, browser, and expect, shaping the agent (context, system prompt, tools, personas), the replay cache, the e2e CLI, reading .e2e/report.json, and bug bashes (parallel explore runs proven with repro tests). Use when a project depends on e2e, when asked for end-to-end, browser,
repo: kortix-ai/suna
Beliebtheit
- GitHub-Sterne
- 20k
- Platz im Ranking
- #10374
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
claude-code
20kLässt deinen Agenten eine Programmier , Review oder Planungsaufgabe an die Claude Code CLI von Anthropic übergeben und das Ergebnis zur Prüfung festhalten.
codex-cli
20kLässt deinen Agenten eine Programmier oder Prüfaufgabe an die Codex CLI von OpenAI übergeben und das Ergebnis festhalten, damit ein zweites Modell die Arbeit prüfen kann.
commit-dis
20kLässt deinen Agenten nur die Änderungen aus diesem Chat als einen Commit auf deinem aktuellen Git Branch speichern, ohne zu pushen oder einen neuen Branch anzulegen.
composio
20kHilft deinem Agenten, Composio zu nutzen, um Apps wie Gmail, Slack, GitHub und Notion zu verbinden, für deinen eigenen Agenten oder für ein Produkt, das du baust.
Ähnliche Skills
test-driven-development
311kBringt deinem Agenten bei, vor jedem Feature oder Fix zuerst einen fehlschlagenden Test zu schreiben, ihn fehlschlagen zu sehen und dann den kleinsten passenden Code zu schreiben.
verification-before-completion
311kBringt deinem Agenten bei, echte Prüfungen auszuführen und ihre Ausgabe zu lesen, bevor er behauptet, eine Aufgabe, ein Fix oder ein Build sei fertig oder bestehe.
migrate-to-shoehorn
310kErsetzt riskante Typumwandlungen in deinen Testdateien durch die Bibliothek shoehorn, damit Tests mit unvollständigen Daten arbeiten und trotzdem die Typprüfung bestehen.