e2e
Qué hace
Esta skill guía a la IA para escribir pruebas agénticas de extremo a extremo de apps web y móviles. Es para desarrolladores que quieren pruebas que describan lo que hace un usuario y comprueben lo que aparece en pantalla.
Cuándo usarla
- ✓Cuando quieres pruebas automatizadas que hagan clic en una app web como lo haría un usuario.
- ✓Cuando necesitas pruebas para una app en un simulador de iOS o en un emulador de Android.
- ✓Cuando quieres comprobar que una pantalla o una API muestra el resultado esperado después de un flujo.
Link de la skill
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/e2e/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Escribe una prueba de extremo a extremo que inicie sesión en mi app web y compruebe que el panel carga.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA prepara un archivo de configuración para la app, deja que un agente actúe en cada objetivo y comprueba la pantalla con aserciones exactas. Las acciones verificadas se pueden repetir desde una caché sin llamar al modelo.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Necesita una clave de modelo?
Los juicios del agente siguen necesitando un modelo, y la skill incluye los pasos para iniciar sesión en el modelo. Las acciones verificadas se pueden repetir sin uno.
¿Qué plataformas admite?
Admite navegadores mediante Playwright y apps móviles en simuladores de iOS y emuladores de Android.
¿También puede probar una API?
Sí. Una prueba que usa solo la app puede comprobar una API con fetch y expectativas exactas.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 20 mil
- Posición en el ranking
- #10374
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
claude-code
20 milPermite que tu agente pase una tarea de código, revisión o planificación a la CLI de Claude Code de Anthropic y guarde el resultado para comprobarlo.
codex-cli
20 milPermite que tu agente pase una tarea de código o revisión a la CLI de Codex de OpenAI y guarde el resultado, para que un segundo modelo pueda revisar el trabajo.
commit-dis
20 milPermite que tu agente guarde solo los cambios hechos en este chat como un commit en tu rama actual de Git, sin subirlo ni crear una rama nueva.
composio
20 milAyuda a tu agente a usar Composio para conectar apps como Gmail, Slack, GitHub y Notion, ya sea para tu propio agente o para un producto que construyas.
Skills parecidas
test-driven-development
311 milEnseña a tu agente a escribir primero una prueba que falle, verla fallar y después escribir el código más pequeño que la hace pasar, antes de construir cualquier función o corrección.
verification-before-completion
311 milEnseña a tu agente a ejecutar comprobaciones reales y leer su resultado antes de afirmar que una tarea, una corrección o una compilación está completa o en buen estado.
migrate-to-shoehorn
310 milSustituye los casts de tipo arriesgados de tus archivos de prueba por la librería shoehorn, para que las pruebas usen datos parciales y sigan pasando las comprobaciones de tipos.