qa-playwright-add-test-data

Generate and extend Playwright test data in inputs.json and builder.ts files.

12|6|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/whitebeardit/.cursor --skill qa-playwright-add-test-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qa-playwright-add-test-data
Source: https://github.com/whitebeardit/.cursor/tree/main/skills/qa/skill-qa-playwright-add-test-data
Command: npx skills add https://github.com/whitebeardit/.cursor --skill qa-playwright-add-test-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation and management of test data for Playwright testing, ensuring comprehensive and varied test coverage for API and UI flows.

Core Features & Use Cases

  • Structured Test Data: Define static input scenarios in inputs.json for repeatable tests.
  • Dynamic Data Generation: Create dynamic test data using builder.ts for unique values per test run (e.g., emails, random strings).
  • Organized Data Storage: Stores test data in test-data/api/<flow>/ or test-data/ui/<flow>/ for easy access.
  • Use Case: When developing a new user registration flow, use this Skill to define standard registration inputs and a builder to generate unique email addresses for each test execution.

Quick Start

Use the qa-playwright-add-test-data skill to add a new input scenario for the 'user-registration' UI flow.

Frequently Asked Questions about qa-playwright-add-test-data

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

FAQPage Schema
How do I generate dynamic test data for Playwright UI and API flows?

Generate dynamic Playwright test data by creating a builder.ts file in the test-data directory. This uses the builder pattern to produce unique values like random emails for each test execution, supporting both API and UI flows.

What is the best way to structure static inputs for repeatable Playwright tests?

The best way to structure static Playwright test data is by defining input scenarios in an inputs.json file. This ensures repeatable test coverage and stores the data in organized test-data directories for API and UI flows.

Can I use a data factory with Playwright for automated test data generation?

Yes, you can use a data factory with Playwright. This approach utilizes a lib/data-factory module to generate and extend test data, seamlessly integrating dynamic data creation into your API and UI testing workflows.

How do I add a new input scenario for a specific Playwright UI flow?

Add a new input scenario for a specific Playwright UI flow by defining the standard inputs in an inputs.json file, stored under the test-data/ui/<flow>/ directory structure for easy access and organization.

Why do I need a builder pattern for test data in Playwright?

You need the builder pattern in Playwright to generate dynamic test data, such as unique email addresses or random strings, ensuring comprehensive and varied test coverage without data collisions across multiple test runs.