webapp-testing
하는 일
이 도구는 컴퓨터에서 만들고 있는 웹사이트를 테스트하고 디버깅하도록 돕습니다. 사용자처럼 사이트와 상호작용하고, 모든 것이 작동하는지 확인하며, 스크린샷을 찍거나 오류 메시지를 볼 수 있습니다.
사용하는 경우
- ✓웹사이트의 버튼이 작동하는지 확인하고 싶을 때.
- ✓페이지의 텍스트가 맞는지 확인해야 할 때.
- ✓웹사이트가 여러 화면 크기에서 어떻게 보이는지 사진으로 찍고 싶을 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/webapp-testing/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“'저장' 버튼이 작동하는지, 그리고 '저장되었습니다' 메시지가 나타나는지 테스트해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 Playwright라는 프로그램을 사용해 실제 브라우저에서 웹사이트를 엽니다. 버튼을 클릭하고 입력란을 채우며, 모든 것이 기대대로인지 확인할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Web Application Testing
This skill enables comprehensive testing and debugging of local web applications using Playwright automation.
You should use the Playwright MCP Server to undertake the work if possible. If the MCP Server is unavailable, you can run the code in a local Node.js environment with Playwright installed.
When to Use This Skill
Use this skill when you need to:
- Test frontend functionality in a real browser
- Verify UI behavior and interactions
- Debug web application issues
- Capture screenshots for documentation or debugging
- Inspect browser console logs
- Validate form submissions and user flows
- Check responsive design across viewports
Prerequisites
- Node.js installed on the system
- A locally running web application (or accessible URL)
- Playwright will be installed automatically if not present
Core Capabilities
1. Browser Automation
- Navigate to URLs
- Click buttons and links
- Fill form fields
- Select dropdowns
- Handle dialogs and alerts
2. Verification
- Assert element presence
- Verify text content
- Check element visibility
- Validate URLs
- Test responsive behavior
3. Debugging
- Capture screenshots
- View console logs
- Inspect network requests
- Debug failed tests
Usage Examples
Example 1: Basic Navigation Test
// Navigate to a page and verify title
await page.goto("http://localhost:3000");
const title = await page.title();
console.log("Page title:", title);
Example 2: Form Interaction
// Fill out and submit a form
await page.fill("#username", "testuser");
await page.fill("#password", "password123");
await page.click('button[type="submit"]');
await page.waitForURL("**/dashboard");
Example 3: Screenshot Capture
// Capture a screenshot for debugging
await page.screenshot({ path: "debug.png", fullPage: true });
Guidelines
- Always verify the app is running - Check that the local server is accessible before running tests
- Use explicit waits - Wait for elements or navigation to complete before interacting
- Capture screenshots on failure - Take screenshots to help debug issues
- Clean up resources - Always close the browser when done
- Handle timeouts gracefully - Set reasonable timeouts for slow operations
- Test incrementally - Start with simple interactions before complex flows
- Use selectors wisely - Prefer data-testid or role-based selectors over CSS classes
Common Patterns
Pattern: Wait for Element
await page.waitForSelector("#element-id", { state: "visible" });
Pattern: Check if Element Exists
const exists = (await page.locator("#element-id").count()) > 0;
Pattern: Get Console Logs
page.on("console", (msg) => console.log("Browser log:", msg.text()));
Pattern: Handle Errors
try {
await page.click("#button");
} catch (error) {
await page.screenshot({ path: "error.png" });
throw error;
}
Limitations
- Requires Node.js environment
- Cannot test native mobile apps (use React Native Testing Library instead)
- May have issues with complex authentication flows
- Some modern frameworks may require specific configuration
Helper Functions
Some helper functions are available in test-helper.js to simplify common tasks like waiting for elements, capturing screenshots, and handling errors. You can import and use these functions in your tests to improve readability and maintainability.
자주 묻는 질문
설치해야 할 것이 있나요?
Node.js가 설치되어 있어야 합니다. Playwright가 아직 없다면 도구가 자동으로 설치합니다.
모바일 앱도 테스트할 수 있나요?
아니요, 이 도구는 컴퓨터의 브라우저에서 실행되는 웹사이트용입니다. 모바일 앱에는 다른 도구가 필요합니다.
'선택자(selectors)'란 무엇인가요?
도구가 웹 페이지의 버튼, 입력란, 기타 요소를 찾기 위해 사용하는 주소와 같습니다.
상세 정보
작성자의 원본 설명
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
repo: github/awesome-copilot
인기도
- GitHub 스타
- 40k
- 순위
- #7475
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.