playwright-generate-test

작성자: github

시나리오를 기반으로 대화형 브라우저 탐색 및 검증을 통해 Playwright 테스트를 생성합니다. 단계별 테스트 생성 과정(시나리오 검토, 브라우저 탐색, 요소 검사, 상호작용 검증, 최종 테스트 생성)을 안내합니다. Playwright MCP 도구와 통합하여 페이지 요소를 검사하고, 선택자를 캡처하며, 테스트 코드를 작성하기 전에 상호작용을 검증합니다. @playwright/test 프레임워크를 사용하여 TypeScript 테스트를 생성하고 tests 디렉터리에 자동 저장합니다...

npx skills add https://github.com/github/awesome-copilot --skill playwright-generate-test

Test Generation with Playwright MCP

Your goal is to generate a Playwright test based on the provided scenario after completing all prescribed steps.

Specific Instructions

  • You are given a scenario, and you need to generate a playwright test for it. If the user does not provide a scenario, you will ask them to provide one.
  • DO NOT generate test code prematurely or based solely on the scenario without completing all prescribed steps.
  • DO run steps one by one using the tools provided by the Playwright MCP.
  • Only after all steps are completed, emit a Playwright TypeScript test that uses @playwright/test based on message history
  • Save generated test file in the tests directory
  • Execute the test file and iterate until the test passes

github의 다른 스킬