playwright

Generate Page object and integration, unit tests for your application.

2|Updated Jun 11, 2024
One-click install
npx skills add https://github.com/gutierrezp22/administracion-departamentos --skill playwright-gutierrezp22
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/gutierrezp22/administracion-departamentos/tree/main/.cursor/skills/playwright
Command: npx skills add https://github.com/gutierrezp22/administracion-departamentos --skill playwright-gutierrezp22

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation of reliable End-to-End (E2E) tests for web applications using Playwright, ensuring application quality and stability.

Core Features & Use Cases

  • Page Object Model: Encourages maintainable and reusable test code.
  • Selector Prioritization: Guides users to write stable and robust selectors.
  • MCP Workflow Integration: Promotes a structured approach to test creation using MCP tools.
  • Use Case: Develop a comprehensive suite of E2E tests for a new user authentication flow, covering sign-up, login, password reset, and logout scenarios.

Quick Start

Use the playwright skill to generate a new E2E test for the user login functionality.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I write robust E2E tests with Playwright using the Page Object Model?

To write robust E2E tests with Playwright, this Skill enforces the Page Object Model pattern and guides selector prioritization. It mandates specific file structures and naming conventions to ensure your test code remains maintainable and reusable across complex web application flows.

What is the best way to structure Playwright selectors for stable end-to-end testing?

Stable Playwright selectors are achieved through strict selector prioritization rules provided by this Skill. It directs you toward robust selector strategies during test creation, reducing test flakiness and ensuring your end-to-end tests target elements reliably.

Can I use MCP workflow integration to generate Playwright test suites for user authentication?

Yes, you can integrate MCP workflow tools to generate Playwright test suites for user authentication flows. This Skill supports structured test creation workflows, enabling you to systematically cover sign-up, login, password reset, and logout scenarios.

Do I need specific file naming conventions for Playwright test creation?

Yes, specific file structures and naming conventions are required for Playwright test creation. This Skill mandates adherence to these defined conventions to maximize code maintainability and support structured documentation throughout the test development process.

Why does my Playwright E2E test suite lack maintainability across complex scenarios?

Your Playwright E2E test suite lacks maintainability without structured patterns like the Page Object Model. This Skill solves that problem by enforcing reusable test code structures, robust selector selection, and strict naming conventions for long-term stability.