e2e-test-writer

Generate Playwright end-to-end tests using the page object model.

25|2|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/matteocervelli/llms --skill e2e-test-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-test-writer
Source: https://github.com/matteocervelli/llms/tree/main/.claude/skills/e2e-test-writer
Command: npx skills add https://github.com/matteocervelli/llms --skill e2e-test-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides the creation of comprehensive end-to-end tests using Playwright and the page object model.

Core Features & Use Cases

  • Page Object Model: Structured page objects for maintainable E2E tests.
  • Playwright Setup: Guidance for config and test project layout.
  • Isolated Workflows: End-to-end scenarios with robust isolation patterns.

Quick Start

Create a Playwright-based E2E test suite for a user login workflow using the page object model.

Frequently Asked Questions about e2e-test-writer

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

FAQPage Schema
How do I write end-to-end tests with Playwright using the page object model?

End-to-end tests with Playwright using the page object model involve creating reusable page classes that encapsulate selectors and interactions, then writing test scenarios that call those page methods. This pattern improves maintainability by centralizing UI element locators and reducing test duplication across browser and device interactions.

What is the page object model and why use it for browser testing?

The page object model is a design pattern that represents each page or component as a class containing locators and methods for user interactions. It reduces test brittleness, improves readability, and makes tests easier to maintain when UI elements change, since locators are defined in one place rather than scattered across test files.

Can I use Playwright to test responsive design and cross-browser scenarios?

Yes, Playwright supports testing across multiple browsers and devices with built-in configuration for viewports and device emulation. You can validate responsive design and user workflows across different screen sizes and browsers by defining test projects in your Playwright configuration.

How do I set up a Playwright project with organized test structure?

Set up Playwright by initializing a configuration file, organizing directories for tests, page objects, fixtures, and utilities, creating a BasePage class for shared interactions, and defining test projects for different browsers. This structured layout makes tests scalable and easier to maintain as your E2E suite grows.

What are the limitations of end-to-end testing with Playwright?

E2E tests with Playwright are slower than unit tests, require a running application, and can be flaky if selectors or timing assumptions change. They're best suited for critical user workflows and CI/CD validation rather than comprehensive feature coverage; combine them with lower-level tests for efficiency.

Do I need prior testing experience to create Playwright E2E tests?

While prior testing knowledge helps, Playwright's readable API and page object pattern make it accessible to developers new to E2E testing. Understanding basic selectors, async/await, and test organization concepts accelerates learning, but the structure guides you through setup and test writing.