Skills DirectoryCurated open-source Skills from GitHub

e2e-testingcommit d29cf65SKILL.md · Testing & Debugging

Playwright E2E Testing Patterns

Playwright E2E testing patterns covering Page Object Model, configuration, CI/CD integration, artifact management and flaky test strategies.

npx skills add affaan-m/ECC --skill e2e-testing
Permissions
  • read-repo
  • write-files
  • shell
  • network
Compatible with
Claude Code, Codex, Cursor, Copilot, OpenCode
GitHub
294.3k
Source
Community · Affaan Mustafa
Status
Scan passed
License
MIT

Core rule

Wait for specific conditions such as auto-waiting locators or a particular response, not arbitrary timeouts.

Execution Phases

  1. Phase 01Organize the tests

    Group test files by feature under tests/e2e, add fixtures, and write Page Object classes with data-testid locators.

  2. Phase 02Write the tests

    Structure cases with test.describe and beforeEach, drive pages through page objects, and assert on results.

  3. Phase 03Configure Playwright

    Set CI retries, reporters, trace, screenshot and video on failure, multiple browsers and webServer in playwright.config.ts.

  4. Phase 04Handle flaky tests

    Quarantine with test.fixme or test.skip, find flakiness with --repeat-each, and fix race, network and animation timing issues.

  5. Phase 05Artifacts and CI

    Capture screenshots, traces and video, run tests in GitHub Actions with the report uploaded, and fill in the test report template.

Permissions (summarised from SKILL.md)

CapabilityNeededDetails
File writesRequiredWrites test files, page objects, playwright.config.ts and a CI workflow.
Command executionTests onlyRuns npx playwright test, including with --repeat-each and --retries.
Network outboundNot requiredTests default to a local baseURL; the patterns include no other network steps.

SKILL.md frontmatter (YAML)

SKILL.md frontmatter (YAML)commit d29cf65
---
name: e2e-testing
description: Playwright E2E testing patterns, Page Object Model, configuration, CI/CD integration, artifact management, and flaky test strategies. Use when writing Playwright tests, structuring page objects, or fixing flaky E2E runs in CI.
metadata:
  origin: ECC
---

Related skills

A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.