github avatar

Playwright Generate Test

The playwright-generate-test skill generates Playwright tests from user-provided scenarios by systematically executing steps through the Playwright MCP tools, then saving and validating the generated TypeScript test files. It serves developers who need to create automated browser tests and solves the problem of manually writing test code by automating test generation and ensuring tests pass before completion.

skills.sh installs
18.2K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill playwright-generate-test --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Testing & QA, Git & Pull Requests, AI & Agent Building

More from github/awesome-copilot

All 318
1vercel avatarcapture-api-response-test-fixturevercel/aiCapture API response test fixture.1.7Kskills.sh installs
2davila7 avatarqa-test-plannerdavila7/claude-code-templatesGenerate comprehensive test plans, manual test cases, regression test suites, and bug reports for QA engineers. Includes Figma MCP integration for design valida394skills.sh installs
3secondsky avatarbun-test-coveragesecondsky/claude-skillsUse for test coverage with Bun, --coverage flag, lcov reports, thresholds, and CI integration.337skills.sh installs
4openai avatartest-coverage-improveropenai/openai-agents-pythonImprove test coverage in the OpenAI Agents Python repository: run `make coverage`, inspect coverage artifacts, identify low-coverage files, propose high-impact 266skills.sh installs
5proffesor-for-testing avatartest-design-techniquesproffesor-for-testing/agentic-qeSystematic test design with boundary value analysis, equivalence partitioning, decision tables, state transition testing, and combinatorial testing. Use when de202skills.sh installs
6naodeng avatartest-case-writingnaodeng/awesome-qa-skillsUse this skill when you need to create high-quality test cases with normal, exception, and boundary scenarios; triggers include test case writing and test desig455skills.sh installs