e2e-testing-patterns

Implement Playwright and Cypress end-to-end tests with Page Object Model patterns.

23|2|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/herdiansah/Antigravity-Skills-Master --skill e2e-testing-patterns-herdiansah
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-testing-patterns
Source: https://github.com/herdiansah/Antigravity-Skills-Master/tree/main/.agent/skills/e2e-testing-patterns
Command: npx skills add https://github.com/herdiansah/Antigravity-Skills-Master --skill e2e-testing-patterns-herdiansah

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers create reliable, fast, and maintainable end-to-end (E2E) test suites that catch regressions early and enable confident, rapid deployments.

Core Features & Use Cases

  • Framework Agnostic Patterns: Provides best practices and code examples for both Playwright and Cypress.
  • Key Strategies: Covers Page Object Model, fixtures, waiting strategies, network mocking, custom commands, and visual regression testing.
  • Use Case: When implementing new E2E tests for a critical user flow like checkout, use this Skill to ensure you're following proven patterns for stability and maintainability.

Quick Start

Use the e2e-testing-patterns skill to generate a Playwright Page Object Model example for a login page.

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 E2E tests in Playwright and Cypress?

Fix flaky E2E tests by implementing proper waiting strategies and network mocking. This Skill provides proven patterns for both Playwright and Cypress to handle asynchronous operations, stabilize selectors, and eliminate timing-related test failures.

How to use the Page Object Model for E2E testing?

Use the Page Object Model to encapsulate UI elements and interactions into reusable classes. This Skill provides implementation examples for Playwright and Cypress, separating test logic from locators to enhance maintainability and reduce duplication across test suites.

Does this E2E testing skill support both Playwright and Cypress?

Yes, it supports both frameworks. The Skill provides framework-agnostic patterns and specific code examples for implementing E2E tests, covering setup, custom commands, fixtures, and visual regression testing for both Playwright and Cypress environments.

What is network mocking in E2E testing and when should I use it?

Network mocking intercepts API requests to return controlled responses, isolating tests from backend dependencies. Use it to simulate error states, edge cases, or specific data scenarios, which this Skill covers to ensure deterministic and fast test execution.

How do I implement visual regression testing in Cypress or Playwright?

Implement visual regression testing by capturing baseline screenshots and comparing them against future runs. This Skill covers the setup and configuration needed to detect unintended UI changes and catch visual regressions before deployment.

Why does my E2E test suite fail during parallel execution?

E2E test suites fail in parallel execution due to shared state or resource conflicts. This Skill addresses this by providing patterns for test sharding, proper fixture management, and isolated test contexts to enable fast and reliable parallel runs.