본문으로 건너뛰기
Skillpedia
테스트8.2k · #12544

webapp-testing

하는 일

이 스킬은 웹 앱을 처음부터 끝까지 테스트하는 과정을 AI가 따라가도록 안내합니다. 모든 경로와 핵심 사용자 흐름을 점검하고 싶은 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓웹 앱의 페이지와 API에 문제가 있는지 점검하고 싶을 때.
  • ✓로그인 같은 핵심 사용자 흐름에 자동 브라우저 테스트가 필요한 경우.
  • ✓출시 전에 사이트의 접근성 점검이 필요할 때.

스킬 링크

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/webapp-testing/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 웹 앱의 주요 페이지와 로그인 흐름을 테스트하고, 스크린샷을 찍고, 접근성도 점검해 주세요.”

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

작동 방식

이 스킬은 앱의 경로와 API 엔드포인트를 매핑하고 응답하는지 확인한 뒤, 핵심 경로에서 브라우저 테스트를 실행합니다. 스크린샷을 찍거나 접근성 점검을 실행할 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Web App Testing

Discover and test everything. Leave no route untested.

🔧 Runtime Scripts

Execute these for automated browser testing:

Script Purpose Usage
scripts/playwright_runner.py Basic browser test python scripts/playwright_runner.py https://example.com
With screenshot python scripts/playwright_runner.py <url> --screenshot
Accessibility check python scripts/playwright_runner.py <url> --a11y

Requires: pip install playwright && playwright install chromium


1. Deep Audit Approach

Discovery First

Target How to Find
Routes Scan app/, pages/, router files
API endpoints Grep for HTTP methods
Components Find component directories
Features Read documentation

Systematic Testing

  1. Map - List all routes/APIs
  2. Scan - Verify they respond
  3. Test - Cover critical paths

2. Testing Pyramid for Web

        /\          E2E (Few)
       /  \         Critical user flows
      /----\
     /      \       Integration (Some)
    /--------\      API, data flow
   /          \
  /------------\    Component (Many)
                    Individual UI pieces

3. E2E Test Principles

What to Test

Priority Tests
1 Happy path user flows
2 Authentication flows
3 Critical business actions
4 Error handling

E2E Best Practices

Practice Why
Use data-testid Stable selectors
Wait for elements Avoid flaky tests
Clean state Independent tests
Avoid implementation details Test user behavior

4. Playwright Principles

Core Concepts

Concept Use
Page Object Model Encapsulate page logic
Fixtures Reusable test setup
Assertions Built-in auto-wait
Trace Viewer Debug failures

Configuration

Setting Recommendation
Retries 2 on CI
Trace on-first-retry
Screenshots on-failure
Video retain-on-failure

5. Visual Testing

When to Use

Scenario Value
Design system High
Marketing pages High
Component library Medium
Dynamic content Lower

Strategy

  • Baseline screenshots
  • Compare on changes
  • Review visual diffs
  • Update intentional changes

6. API Testing Principles

Coverage Areas

Area Tests
Status codes 200, 400, 404, 500
Response shape Matches schema
Error messages User-friendly
Edge cases Empty, large, special chars

7. Test Organization

File Structure

tests/
├── e2e/           # Full user flows
├── integration/   # API, data
├── component/     # UI units
└── fixtures/      # Shared data

Naming Convention

Pattern Example
Feature-based login.spec.ts
Descriptive user-can-checkout.spec.ts

8. CI Integration

Pipeline Steps

  1. Install dependencies
  2. Install browsers
  3. Run tests
  4. Upload artifacts (traces, screenshots)

Parallelization

Strategy Use
Per file Playwright default
Sharding Large suites
Workers Multiple browsers

9. Anti-Patterns

❌ Don't ✅ Do
Test implementation Test behavior
Hardcode waits Use auto-wait
Skip cleanup Isolate tests
Ignore flaky tests Fix root cause

Remember: E2E tests are expensive. Use them for critical paths only.

자주 묻는 질문

브라우저 테스트를 실행하려면 무엇을 설치해야 하나요?

Playwright와 Chromium 브라우저가 포함된 Python이 필요하다고 스킬이 알려 줍니다.

모든 경로를 테스트하나요?

모든 경로를 찾아 테스트하는 것을 목표로 하며, 핵심 사용자 경로부터 시작합니다.

접근성도 점검할 수 있나요?

네. 실행 스크립트에 접근성 점검 옵션이 있습니다.

상세 정보

작성자의 원본 설명

Web application testing principles. E2E, Playwright, deep audit strategies.

repo: vudovn/ag-kit

인기도

GitHub 스타
8.2k
순위
#12544
라이선스
MIT
업데이트
2026. 10. 18.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬