playwright-generate-test

Translate user scenarios into Playwright TypeScript test files.

Updated Aug 18, 2025
One-click install
npx skills add https://github.com/hdicko/leidimen --skill playwright-generate-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-generate-test
Source: https://github.com/hdicko/leidimen/tree/main/.github/skills/playwright-generate-test
Command: npx skills add https://github.com/hdicko/leidimen --skill playwright-generate-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scenarios often require translating natural language steps into structured Playwright tests. This Skill automates turning scenario descriptions into test templates that you can refine and execute.

Core Features & Use Cases

  • Scenario-driven test generation: converts provided scenarios into Playwright test templates in TypeScript.
  • Step orchestration and result verification: includes scaffolding for test steps and basic assertions.
  • Use Case: You have a scenario describing a login flow; this Skill generates a starting Playwright test that you can run and iterate.

Quick Start

Provide a scenario and request a Playwright MCP-based test generation, then run and iterate until the test 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 natural language scenario?

To generate Playwright tests from a scenario, provide your natural language steps to translate them into a structured TypeScript test template. This process automates converting scenario descriptions into executable end-to-end web testing scripts with basic assertions.

What is scenario-driven test generation in Playwright?

Scenario-driven test generation in Playwright is the process of translating natural language user steps into structured TypeScript test templates. It provides step scaffolding and basic assertions to automate web interactions for end-to-end testing workflows.

Can I use this to scaffold step-by-step execution and result verification for web automation?

Yes, you can use this to scaffold step-by-step execution and result verification for web automation. It translates scenarios into Playwright TypeScript tests, applying to end-to-end workflows where structured test generation and validation are needed.

Does Playwright test generation work with TypeScript and output a test file?

Playwright test generation works with TypeScript and outputs a validated test file. After translating your scenario into a test template, it stores the generated file directly in your designated tests directory for execution and iteration.

What's the best way to automate a login flow test using Playwright?

The best way to automate a login flow test using Playwright is to provide a scenario describing the login steps to generate a starting TypeScript test template. You can then run and iterate on this generated test until it passes validation.