playwright-generate-test

Generate Playwright tests from user scenarios as TypeScript code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of Playwright tests by translating user-provided scenarios into executable TypeScript code, streamlining the testing process.

Core Features & Use Cases

  • Scenario-to-Test Generation: Converts natural language descriptions of user flows into Playwright tests.
  • Iterative Test Execution: Runs generated tests and iterates until they pass, ensuring reliability.
  • Use Case: A developer needs to quickly create a test for a new user registration flow. They provide the scenario to the Skill, which generates and validates the Playwright test code.

Quick Start

Use the playwright-generate-test skill to create a Playwright test for the scenario: 'User logs in with valid credentials and navigates to the dashboard'.

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?

Playwright e2e tests are generated by providing descriptive user scenarios, which the skill translates into executable TypeScript code. It uses the Playwright MCP to automate the creation of these end-to-end test scripts for web applications.

Can I automatically run and fix generated Playwright e2e tests until they pass?

Yes, the skill executes generated Playwright tests iteratively until they pass. It validates the TypeScript code by running it, refining the test automation until the end-to-end scenario executes successfully.

Does this test generation tool save the created TypeScript files automatically?

Generated Playwright tests are automatically saved in the 'tests' directory. This ensures the created TypeScript e2e testing files are stored in the correct location for the framework to locate and execute them.

What is the best way to write Playwright e2e tests for a new user registration flow?

The best way to write Playwright e2e tests for a new registration flow is to provide the user scenario to this generation skill. It translates the descriptive user flow into executable TypeScript code and iterates until the test passes.

Do I need the Playwright MCP to generate end-to-end tests from scenarios?

Yes, the Playwright MCP is required to generate end-to-end tests from scenarios. The skill relies on this protocol to translate natural language descriptions into executable TypeScript code for web application testing.