playwright-e2e-monorepo

Set up and run Playwright end-to-end tests across monorepo apps.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/mpetito/prompts --skill playwright-e2e-monorepo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-e2e-monorepo
Source: https://github.com/mpetito/prompts/tree/main/skills/playwright-e2e-monorepo
Command: npx skills add https://github.com/mpetito/prompts --skill playwright-e2e-monorepo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @playwright/test, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of setting up and maintaining reliable end-to-end tests in monorepo projects using Playwright, reducing manual configuration and errors.

Core Features & Use Cases

  • Monorepo Configuration: Establishes Playwright testing across multiple apps and packages within an npm workspace.
  • Multi-Device Testing: Supports desktop and mobile devices for comprehensive responsive QA.
  • CI/CD Integration: Simplifies continuous integration pipelines with tailored scripts and environment setup.
  • Use Case: Automate end-to-end testing for a complex web application with multiple micro-frontends and ensure consistency across environments.

Quick Start

Configure Playwright in your monorepo and run cross-device tests to validate your web application's workflows.

Frequently Asked Questions about playwright-e2e-monorepo

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

FAQPage Schema
How do I set up Playwright end-to-end testing in a monorepo?

Playwright end-to-end testing in a monorepo works by establishing a unified configuration across multiple apps and packages within an npm workspace, enabling automated test execution and continuous integration.

Can I run cross-device mobile and desktop tests with Playwright in an npm workspace?

Yes, you can run cross-device tests with Playwright in an npm workspace. The configuration supports both desktop and mobile devices to provide comprehensive responsive QA for web applications.

What is the best way to automate e2e testing for micro-frontends?

Automating e2e testing for micro-frontends is best handled through a monorepo configuration that validates workflows across multiple applications, ensuring consistency and reducing manual configuration errors.

Does this Playwright monorepo configuration support CI pipelines?

Yes, this Playwright monorepo configuration supports CI pipelines. It simplifies continuous integration by providing tailored scripts and environment management for automated test execution.

Do I need to implement the Page Object Model pattern for end-to-end testing in a monorepo?

Implementing the Page Object Model pattern is supported but not strictly required. The setup facilitates POM pattern implementation to help manage complex web project testing environments effectively.

Why use a dedicated configuration for end-to-end testing in monorepos?

Using a dedicated configuration for end-to-end testing in monorepos reduces manual setup errors and maintenance challenges, providing reliable test execution across multiple apps and packages.