playwright

Organize Playwright end-to-end tests with Page Object patterns and MCP workflows.

Updated Apr 9, 2025
One-click install
npx skills add https://github.com/D4nitrix13/dotfiles-tmp --skill playwright-d4nitrix13
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/D4nitrix13/dotfiles-tmp/tree/main/.config/opencode/skill/playwright
Command: npx skills add https://github.com/D4nitrix13/dotfiles-tmp --skill playwright-d4nitrix13

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the challenge of organizing and standardizing Playwright-based end-to-end tests.

Core Features & Use Cases

  • Page Object Model patterns for Playwright
  • Deterministic test steps with MCP workflow
  • Clear selector strategies and test documentation

Quick Start

Start by identifying the target page, capture its structure, and implement Playwright tests using the provided Page Object patterns.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I organize Playwright E2E tests using the Page Object Model?

To organize Playwright E2E tests, implement Page Object Model patterns to encapsulate selectors and page structure. This approach standardizes multi-page test journeys and ensures deterministic, maintainable test steps.

What is the best way to standardize selectors in Playwright end-to-end tests?

Standardize selectors in Playwright by defining clear selector strategies within Page Objects. This ensures predictable element targeting across multi-page journeys and reduces test flakiness.

Can I use MCP-guided workflows for deterministic Playwright test steps?

Yes, you can use MCP-guided workflows to enforce deterministic Playwright test steps. This approach provides predictable execution and clear documentation for complex, multi-page test scenarios.

How do I document Playwright test scripts and references effectively?

Document Playwright test scripts by providing YAML frontmatter, structured descriptions, and clear guidance for using references and assets. This satisfies structural requirements and ensures safe execution practices.

Does this approach require any specific dependencies to start writing E2E tests?

No specific dependencies are required beyond the Playwright framework itself. You start by identifying the target page, capturing its structure, and implementing tests using the provided Page Object patterns.