e2e-testing-patterns

Automate creation and maintenance of Playwright and Cypress end-to-end test patterns.

1|1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/penghang1223/niannian-workspace --skill e2e-testing-patterns-penghang1223
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-testing-patterns
Source: https://github.com/penghang1223/niannian-workspace/tree/main/e2e-testing-patterns
Command: npx skills add https://github.com/penghang1223/niannian-workspace --skill e2e-testing-patterns-penghang1223

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

End-to-end tests are essential to validate real user journeys, but flaky failures and brittle setups slow delivery. This Skill provides a comprehensive pattern library that guides the creation, maintenance, and stabilization of E2E tests using Playwright and Cypress.

Core Features & Use Cases

  • Playwright patterns (config, Page Object Model, fixtures, smart waiting, network mocking)
  • Cypress patterns (custom commands, network intercepts, test organization)
  • Test pyramid guidance, debugging strategies, and CI/CD integration for critical workflows

Quick Start

Run the included starter tests to bootstrap your first E2E suite.

Frequently Asked Questions about e2e-testing-patterns

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

FAQPage Schema
How do I fix flaky end-to-end tests in Playwright?

Fix flaky end-to-end tests by applying deterministic waits, network mocking, and pattern-driven scaffolding using Page Object Models to ensure test isolation and reproducible execution across browsers.

What is the best way to structure E2E test automation for critical user journeys?

The best way to structure E2E test automation is using a Page Object Model architecture with fixtures and documented conventions, ensuring cross-browser coverage and reliable execution for critical user workflows.

Does this E2E testing pattern support both Cypress and Playwright?

Yes, the E2E testing patterns support both Cypress and Playwright, providing specific configurations, custom commands, network intercepts, and smart waiting strategies tailored for each framework.

How do I integrate E2E browser tests into a CI/CD pipeline?

Integrate E2E browser tests into CI/CD by applying pattern-driven scaffolding, deterministic waits, and network mocking to stabilize critical user journeys, ensuring reproducible execution during automated deployments.

Why do my Cypress E2E tests fail intermittently during network requests?

Cypress E2E tests fail intermittently due to non-deterministic timing; resolve this by using network intercepts, mocking API responses, and applying smart waiting strategies to stabilize test execution.