playwright-generate-test
github/awesome-copilot
Generate Playwright tests from scenarios using Playwright MCP integration
What is playwright-generate-test?
Generates Playwright tests based on user-provided scenarios by systematically exploring the application using Playwright MCP tools. Use this when you need to create automated test cases from functional requirements or user workflows.
- Accepts scenario descriptions and converts them into executable Playwright tests
- Explores application behavior step-by-step using Playwright MCP tools before generating code
- Generates TypeScript tests using @playwright/test framework
- Saves generated tests to the tests directory
- Executes tests and iterates until they pass
How to install playwright-generate-test
npx skills add https://github.com/github/awesome-copilot --skill playwright-generate-test- Playwright MCP installed and configured
- Node.js environment with @playwright/test available
- Access to the application or website being tested
How to use playwright-generate-test
- 1.Provide a clear scenario or user workflow description
- 2.Allow the skill to explore the application using Playwright MCP tools
- 3.Review the generated test code in the tests directory
- 4.Run the test execution and provide feedback if iterations are needed
- 5.The skill will refine and re-run the test until it passes
Use cases
- Creating test coverage for new user workflows described in requirements
- Automating test generation from acceptance criteria or user stories
- Building regression tests from documented application scenarios
- Generating tests for multi-step user interactions across web pages
- QA engineers automating test creation
- Developers building test suites for web applications
- Teams using Playwright for end-to-end testing
playwright-generate-test FAQ
The skill will ask you to provide one. Be specific about the user actions and expected outcomes.
The skill processes one scenario at a time. Generate tests sequentially for different scenarios.
The skill automatically iterates, refining the test based on execution results until it passes.
All generated test files are saved in the tests directory of your project.
Full instructions (SKILL.md)
Source of truth, from github/awesome-copilot.
name: playwright-generate-test description: 'Generate a Playwright test based on a scenario using Playwright MCP'
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/testbased on message history - Save generated test file in the tests directory
- Execute the test file and iterate until the test passes
Related skills
More from github/awesome-copilot and the wider catalog.
git-commit
Execute semantic git commits with conventional message analysis and intelligent staging.
excalidraw-diagram-generator
Generate Excalidraw diagrams from natural language descriptions.
documentation-writer
Create structured technical documentation using the Diátaxis framework for tutorials, how-to guides, references, and explanations.
gh-cli
GitHub CLI comprehensive reference for repositories, issues, PRs, Actions, projects, releases, and all GitHub operations from the command line.
prd
Generate comprehensive Product Requirements Documents with executive summaries, user stories, technical specs, and risk analysis.
refactor
Surgical code refactoring to improve maintainability without changing behavior.