playwright-generate-test

Generate Playwright TypeScript tests from user scenarios and iterate until passing.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Manu343726/audible-exporter --skill playwright-generate-test-manu343726
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-generate-test
Source: https://github.com/Manu343726/audible-exporter/tree/main/.agents/skills/playwright-generate-test
Command: npx skills add https://github.com/Manu343726/audible-exporter --skill playwright-generate-test-manu343726

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you turn a scenario into a working Playwright end-to-end test, reducing the time spent manually writing and debugging test code.

Core Features & Use Cases

  • Scenario-to-test generation: Converts your described scenario into a Playwright TypeScript test that uses @playwright/test.
  • Step-by-step MCP-guided execution: Runs the prescribed Playwright MCP steps in sequence based on message history before producing code.
  • Iterative verification: Saves the test under the tests directory, executes it, and iterates until the test passes.

Quick Start

Provide the scenario you want tested, then ask the skill to generate, save, and execute the Playwright test until it passes.

Frequently Asked Questions about playwright-generate-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Playwright tests from a scenario description?

Playwright test generation converts a user-provided scenario into a TypeScript test by following Playwright MCP steps based on message history. It emits runnable code using @playwright/test, saves it to a tests directory, and iterates until the test passes.

Can I automatically run and fix generated Playwright TypeScript tests?

Yes, automatically running and fixing generated Playwright TypeScript tests is supported. The skill saves the generated test under the tests directory, executes it, and iterates through the code until the test passes deterministically.

What do I need to provide to generate E2E tests with Playwright MCP?

To generate E2E tests with Playwright MCP, you need to provide a specific scenario describing the browser UI testing task. The skill validates that a scenario is provided before executing MCP steps and generating the TypeScript test code.

Does this approach work for regression testing and UI automation in TypeScript?

Yes, this approach works for regression testing and UI automation in TypeScript. It generates deterministic, runnable Playwright tests stored in a tests directory, making it suitable for validating browser UI workflows during regression testing.

Why does the generated test code only appear after all MCP steps complete?

Generated test code only appears after all MCP steps complete to ensure deterministic, runnable tests. The skill follows prescribed Playwright MCP steps in sequence based on message history before emitting any code, ensuring the test accurately reflects the scenario.