playwright-generate-test

Generate Playwright TypeScript tests from user-provided testing scenarios.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/soham2008xyz/trade-tycoon --skill playwright-generate-test-soham2008xyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-generate-test
Source: https://github.com/soham2008xyz/trade-tycoon/tree/main/.agents/skills/playwright-generate-test
Command: npx skills add https://github.com/soham2008xyz/trade-tycoon --skill playwright-generate-test-soham2008xyz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you turn a described testing scenario into a real Playwright test so you can validate behavior without writing the test by hand.

Core Features & Use Cases

  • Scenario-to-test generation: Converts a provided scenario into a Playwright TypeScript test aligned to Playwright Test conventions.
  • Tool-driven step completion: Guides the agent to run required Playwright MCP steps sequentially based on message history before producing code.
  • Iterative verification: Executes the generated test and iterates until the test passes.

Quick Start

Ask this skill to generate a Playwright test for your scenario and store the resulting TypeScript test in the tests directory, then run it and iterate 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 text scenario automatically?

Playwright test generation from a text scenario converts your described UI workflow into deterministic TypeScript code. It executes required Playwright MCP steps sequentially based on message history to produce a passing @playwright/test file.

Can I automate end-to-end UI validation without writing TypeScript tests by hand?

Automating end-to-end UI validation without manual coding is possible by converting scenarios into TypeScript tests. The skill handles tool-driven step completion and iteratively executes the generated code until the test passes.

What is the best way to ensure generated Playwright E2E tests actually pass?

The best way to ensure generated Playwright E2E tests pass is through iterative verification. The process executes the generated test file, checks the results, and iterates on the code until deterministic passing behavior is achieved.

Does the test generation process require specific dependencies or a separate MCP setup?

Test generation requires the Playwright MCP environment to run sequential steps before producing code. It uses the standard @playwright/test framework and saves the final TypeScript output directly to your tests directory.

How do I convert a described user workflow into a deterministic Playwright test?

Converting a described user workflow into a deterministic Playwright test involves guiding the agent through required MCP steps sequentially. It produces aligned TypeScript code adhering to Playwright Test conventions for reliable validation.

What are the limitations of generating E2E tests from scenarios using Playwright MCP?

Limitations of generating E2E tests from scenarios include relying on sequential Playwright MCP step execution to build message history. The generated TypeScript test targets automated UI validation and may require multiple iterations to pass.