Skip to content
affaan-m avatar

E2e Testing

Playwright E2E testing patterns covering Page Object Model, CI/CD setup, artifact capture, and flaky test triage.

CCM score
67 of 100
skills.sh installs
14.1K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers test file layout, Page Object Model classes, test structure, and a multi-browser Playwright configuration with reporters
  • Includes flaky test handling through test.fixme, --repeat-each, and --retries runs, plus fixes for races, network timing, and animations
  • Manages screenshots, traces, and videos, and shows a GitHub Actions workflow that uploads the HTML report on every run
  • Designed for teams writing Playwright tests, structuring page objects, or fixing flaky E2E runs in CI

Install

$ npx -y skills add affaan-m/ecc --skill e2e-testing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

E2E Testing Patterns

Comprehensive Playwright patterns for building stable, fast, and maintainable E2E test suites.

Test File Organization

tests/
├── e2e/
│   ├── auth/
│   │   ├── login.spec.ts
│   │   ├── logout.spec.ts
│   │   └── register.spec.ts
│   ├── features/
│   │   ├── browse.spec.ts
│   │   ├── search.spec.ts
│   │   └── create.spec.ts
│   └── api/
│       └── endpoints.spec.ts
├── fixtures/
│   ├── auth.ts
│   └── data.ts
└── playwright.config.ts

Page Object Model (POM)

import { Page, Locator } from '@playwright/test'

export class ItemsPage {
  readonly page: Page
  readonly searchInput: Locator
  readonly itemCards: Locator
  readonly createButton: Locator

  constructor(page: Page) {
    this.page = page
    this.searchInput = page.locator('[data-testid="search-input"]')
    this.itemCards = page.locator('[data-testid="item-card"]')
    this.createButton = page.locator('[data-testid="create-btn"]')
  }

  async goto() {
    await this.page.goto('/items')
    await this.page.waitForLoadState('networkidle')
  }

Details

Repository
github.com/affaan-m/ecc
Categories
Testing & QA, Frontend & UI Code
First seen
Jul 14, 2026

Questions

What does the e2e-testing skill cover for Playwright?

The e2e-testing skill gives Playwright patterns for building stable, fast, and maintainable end-to-end test suites. It covers the Page Object Model, Playwright configuration, CI/CD integration, artifact management such as screenshots, traces and video, and strategies for fixing flaky tests.

How do I install the e2e-testing skill?

Run npx -y skills add affaan-m/ecc --skill e2e-testing -y in your project to install it. Once installed, the agent can write Playwright tests, structure page objects, and help fix flaky E2E runs in CI.

Where does e2e-testing rank in its category?

The e2e-testing skill sits in the Testing & QA category and ranks in the top 50 there. Other skills in that category include tdd, webapp-testing and test-driven-development.

Does the e2e-testing skill cover wallet or financial flow testing?

Yes, the SKILL.md includes patterns for mocking a wallet provider in Playwright tests and for testing critical trade flows. It also shows how to skip such tests on production so real money is not affected.

More from affaan-m/ecc

All 257

Similar to E2e Testing

More Testing & QA