e2e
できること
このスキルは、ウェブアプリとモバイルアプリ向けのエージェント型エンドツーエンドテストを書く流れを AI に案内します。ユーザーの操作を記述し、画面に表示される内容を確認するテストを作りたい開発者向けです。
使う場面
- ✓ユーザーと同じようにウェブアプリをクリックして操作する、自動テストを作りたいとき。
- ✓iOS シミュレーターや Android エミュレーターで動くアプリのテストが必要なとき。
- ✓フローの後に、画面や API が期待どおりの結果を表示するかを確認したいとき。
スキルのリンク
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/e2e/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のウェブアプリにサインインし、ダッシュボードが表示されるかを確認するエンドツーエンドテストを書いてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
アプリの設定ファイルを用意し、各目標についてエージェントが操作できるようにして、正確なアサーションで画面を確認します。確認済みの操作は、モデルを呼び出さずにキャッシュから再生できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
モデルのキーが必要ですか?
エージェントの判断にはモデルが必要で、スキルにはモデルへのサインインの手順が含まれます。確認済みの操作は、モデルなしで再生できます。
どのプラットフォームに対応しますか?
Playwright を通じたブラウザー、および iOS シミュレーターと Android エミュレーター上のモバイルアプリに対応します。
API のテストもできますか?
はい。アプリだけを使うテストでも、fetch と正確な期待値を使って API を確認できます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 20k
- ランキング
- #10374
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
claude-code
20kエージェントが、コーディング、レビュー、計画のタスクを Anthropic の Claude Code CLI に任せ、その結果を確認できるように取り込めるよう支援します。
codex-cli
20kコーディングやレビューのタスクを OpenAI の Codex CLI に任せ、その結果を受け取ることで、2 つ目のモデルに作業を確認させられるようにします。
commit-dis
20kこのチャットで行った変更だけを、現在の Git ブランチに 1 つのコミットとして保存します。プッシュやブランチの作成は行いません。
composio
20kComposio を使って Gmail、Slack、GitHub、Notion などのアプリを接続し、自分のエージェントや、自分で作る製品で利用できるよう支援します。
似ているスキル
test-driven-development
311k機能や修正を作る前に、まず失敗するテストを書き、それが失敗するのを確認してから、合格させる最小のコードを書くようエージェントに教えます。
verification-before-completion
311kタスク、修正、ビルドが完了した、または合格したと主張する前に、実際のチェックを実行し、その出力を読むようエージェントに教えます。
migrate-to-shoehorn
310kテストファイル内の危険な型キャストを、shoehornライブラリに置き換え、テストが部分的なデータを使いつつ型チェックを通るようにします。