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.

polyglot-test-agent
Multi-agent pipeline that generates comprehensive, compilable unit tests for any programming language.

postgresql-code-review
PostgreSQL-specific code review assistant for best practices, anti-patterns, and quality standards.

postgresql-optimization
PostgreSQL-specific development assistant for advanced features, optimization, and PostgreSQL-exclusive capabilities.

power-apps-code-app-scaffold
Scaffold a complete Power Apps Code App project with PAC CLI, SDK, and connector setup.

power-bi-dax-optimization
Turns your AI agent into a DAX expert that analyzes and rewrites Power BI formulas for performance and clarity.

power-bi-model-design-review
Turns your AI agent into a Power BI expert that audits data model design, relationships, and performance.