e2e
यह क्या करती है
यह स्किल AI को वेब और मोबाइल ऐप के लिए agentic end-to-end टेस्ट लिखने का तरीका सिखाती है। यह उन डेवलपरों के लिए है जो ऐसे टेस्ट चाहते हैं जो बताएँ कि उपयोगकर्ता क्या करता है और स्क्रीन पर क्या दिखना चाहिए।
कब इस्तेमाल करें
- ✓जब आप स्वचालित टेस्ट चाहते हों जो वेब ऐप पर वैसे ही क्लिक करें जैसे उपयोगकर्ता करता है।
- ✓जब आपको iOS simulator या Android emulator पर चल रहे ऐप के टेस्ट चाहिए।
- ✓जब आप किसी प्रवाह के बाद जाँचना चाहते हों कि स्क्रीन या API अपेक्षित नतीजा दिखा रहे हैं।
Skill का लिंक
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/e2e/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“एक end-to-end टेस्ट लिखिए जो मेरे वेब ऐप में साइन इन करे और जाँचे कि डैशबोर्ड लोड होता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI ऐप के लिए config फ़ाइल सेट करता है, हर लक्ष्य पर एजेंट को काम करने देता है, और सटीक assertions से स्क्रीन जाँचता है। सत्यापित कार्रवाइयाँ cache से बिना मॉडल कॉल के दोबारा चलाई जा सकती हैं।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए model key चाहिए?
एजेंट के निर्णयों के लिए अब भी मॉडल चाहिए, और स्किल में मॉडल साइन-इन के सेटअप चरण हैं। सत्यापित कार्रवाइयाँ इसके बिना दोहराई जा सकती हैं।
यह कौन-से प्लेटफ़ॉर्म सपोर्ट करती है?
यह Playwright के ज़रिए ब्राउज़र को, और iOS simulators तथा Android emulators पर मोबाइल ऐप्स को सपोर्ट करती है।
क्या यह 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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
claude-code
20kआपके एजेंट को कोडिंग, समीक्षा या योजना का काम Anthropic के Claude Code CLI को सौंपने देती है, और नतीजा जाँच के लिए वापस लेती है।
codex-cli
20kआपके एजेंट को कोडिंग या समीक्षा का काम OpenAI के Codex CLI को सौंपने और नतीजा वापस लेने देती है, ताकि दूसरा मॉडल काम की जाँच कर सके।
commit-dis
20kआपके एजेंट को इस चैट में किए गए बदलावों को आपकी मौजूदा Git branch पर एक commit में सहेजने देती है, बिना push किए या नई branch बनाए।
composio
20kआपके एजेंट को Composio से Gmail, Slack, GitHub और Notion जैसे ऐप्स जोड़ने में मदद करती है, चाहे वह आपका अपना एजेंट हो या आपका बनाया प्रोडक्ट।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।