PluginBench
Skill
Official
Review
Audit score 70

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
Prerequisites
  • Playwright MCP installed and configured
  • Node.js environment with @playwright/test available
  • Access to the application or website being tested
Claude Code
Cursor
Windsurf
Cline

How to use playwright-generate-test

  1. 1.Provide a clear scenario or user workflow description
  2. 2.Allow the skill to explore the application using Playwright MCP tools
  3. 3.Review the generated test code in the tests directory
  4. 4.Run the test execution and provide feedback if iterations are needed
  5. 5.The skill will refine and re-run the test until it passes

Use cases

Good for
  • 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
Who it's for
  • QA engineers automating test creation
  • Developers building test suites for web applications
  • Teams using Playwright for end-to-end testing

playwright-generate-test FAQ

What if I don't have a scenario ready?

The skill will ask you to provide one. Be specific about the user actions and expected outcomes.

Can I generate multiple tests at once?

The skill processes one scenario at a time. Generate tests sequentially for different scenarios.

What happens if the test fails on first execution?

The skill automatically iterates, refining the test based on execution results until it passes.

Where are the generated tests saved?

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/test based on message history
  • Save generated test file in the tests directory
  • Execute the test file and iterate until the test passes