본문으로 건너뛰기
Skillpedia
테스트20k · #10374

e2e

하는 일

이 스킬은 AI가 웹 앱과 모바일 앱을 위한 에이전트형 end-to-end 테스트를 작성하도록 안내합니다. 사용자가 하는 행동을 설명하고 화면에 나타나는 결과를 확인하는 테스트를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓사용자가 웹 앱을 클릭하는 것처럼 자동으로 진행하는 테스트를 원할 때.
  • ✓iOS 시뮬레이터나 Android 에뮬레이터에서 실행되는 앱의 테스트가 필요할 때.
  • ✓특정 흐름을 거친 뒤 화면이나 API가 기대한 결과를 보여 주는지 확인하고 싶은 경우.

스킬 링크

https://github.com/kortix-ai/suna/blob/dev/.agents/skills/e2e/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/kortix-ai/suna/blob/dev/.agents/skills/e2e/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 웹 앱에 로그인하고 대시보드가 제대로 열리는지 확인하는 end-to-end 테스트를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 앱용 설정 파일을 만들고, 에이전트가 각 목표를 수행하도록 하며, 정확한 검증 항목으로 화면을 확인합니다. 검증된 동작은 모델 호출 없이 캐시에서 다시 실행할 수 있습니다.

기술 내용 (원본 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

  1. Look at what exists: e2e.config.ts or e2e.config.mts, the tests glob (default tests/**/*.e2e.ts), e2e in package.json. Nothing there: follow setup.
  2. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬