# E2E testing

> E2E testing is an open-source agent skill for developer tools. Guides an agent through writing stable Playwright end-to-end test suites. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Fmarzochi/EGC/tree/main/.agents/skills/e2e-testing
- **Repository:** https://github.com/fmarzochi/egc
- **GitHub stars:** 71
- **License:** Apache-2.0
- **Skill name:** e2e-testing
- **Collection:** https://github.com/Fmarzochi/EGC
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a set of Playwright testing conventions for building end-to-end suites that are stable and easy to maintain. It covers how to lay out test folders with separate auth, feature and API specs, how to wrap pages in a Page Object Model with data-test-id locators, and how to structure tests with beforeEach hooks and explicit assertions.

The guidance also includes a sample Playwright configuration with parallel runs, retries and CI-aware worker settings, multi-browser and mobile projects, and a dev server hook. For troubleshooting, it describes quarantining flaky tests with fixme or conditional skips, repeating runs to reproduce intermittent failures, and replacing fixed timeouts with waits on responses or visibility. It also shows how to capture screenshots, traces and videos, upload reports from a GitHub Actions workflow, and format a test summary report.

The examples are written in TypeScript and assume a web app with Playwright installed. The skill includes a wallet-mocking example for Web3 pages and a cautionary pattern for trading flows that should not run against production.

## When your agent uses it

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/e2e-testing)
- [License: Apache-2.0](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/e2e-testing)

## Features

- **Page Object Model:** Pattern for wrapping page locators and actions in reusable classes.
- **Playwright configuration:** Sample config covering retries, reporters, browser projects and a dev server.
- **Flaky test handling:** Ways to quarantine, repeat and fix intermittent tests by replacing fixed timeouts.
- **Artifact capture:** Guidance on screenshots, traces and videos saved for failed or key steps.
- **CI pipeline example:** A GitHub Actions workflow that installs browsers, runs tests and uploads reports.
- **Test report template:** Markdown layout for summarizing pass, fail and flaky counts with artifact links.

## Good for

- Set up a Playwright project with browser projects and CI-aware retries
- Refactor brittle tests into page objects with reusable locators
- Diagnose and quarantine a flaky end-to-end test
- Add a GitHub Actions job that runs Playwright and saves the HTML report
- Write a summary report of a failing end-to-end run

## Install

### Claude Code

This skill ships in the `egc` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Fmarzochi/EGC
/plugin install egc@egc
```

Or copy only this skill to `~/.claude/skills/e2e-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/e2e-testing &&
cp -R "$tmp/.agents/skills/e2e-testing" ~/.claude/skills/e2e-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/e2e-testing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/e2e-testing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/e2e-testing &&
cp -R "$tmp/.agents/skills/e2e-testing" ~/.agents/skills/e2e-testing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/e2e-testing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/e2e-testing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/e2e-testing &&
cp -R "$tmp/.agents/skills/e2e-testing" ~/.cursor/skills/e2e-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/e2e-testing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Fmarzochi/EGC.git --path .agents/skills/e2e-testing
```

Or copy the folder to `~/.gemini/skills/e2e-testing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/e2e-testing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/e2e-testing &&
cp -R "$tmp/.agents/skills/e2e-testing" ~/.copilot/skills/e2e-testing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/e2e-testing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Fmarzochi/EGC.git
```

Then copy `EGC/.agents/skills/e2e-testing` into your agent's skills folder as `e2e-testing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

The examples are TypeScript Playwright tests, so the project needs Playwright and Node.js. The CI example uses Node 20 and a npm dev server on port 3000.

### Does E2E testing execute any scripts?

No scripts are bundled. It provides code patterns and shell commands for the agent to follow.

### How does E2E testing handle flaky tests?

It describes quarantining tests with test.fixme or conditional skips, repeating runs with --repeat-each, and replacing arbitrary waits with waits on specific responses or element states.

### How do I install E2E testing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/e2e-testing to use it in all your projects, or to .claude/skills/e2e-testing in one project. Or install the egc plugin, which includes it: /plugin marketplace add Fmarzochi/EGC, then /plugin install egc@egc.

### Does E2E testing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use E2E testing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to E2E testing?

The closest alternatives to E2E testing are E2E testing, E2E playwright, Playwright E2E testing, Playwright verification and E2E testing edho ferdian.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [E2E testing](https://ai-powered.com/skills/e2e-testing): E2E testing is an open-source agent skill for developer tools.
- [E2E playwright](https://ai-powered.com/skills/e2e-playwright): E2E playwright is an open-source agent skill for developer tools.
- [Playwright E2E testing](https://ai-powered.com/skills/playwright-e2e-testing): Playwright E2E testing is an open-source agent skill for developer tools.
- [Playwright verification](https://ai-powered.com/skills/playwright-verification-ajyadav013): Playwright verification is an open-source agent skill for browser automation.
- [E2E testing edho ferdian](https://ai-powered.com/skills/e2e-testing-edho-ferdian): E2E testing edho ferdian is an open-source agent skill for developer tools.
- [Playwright skill](https://ai-powered.com/skills/playwright-skill): Playwright skill is an open-source agent skill for browser automation.
- [Integrated test](https://ai-powered.com/skills/integrated-test): Integrated test is an open-source agent skill for developer tools.
- [Playwright test implementation](https://ai-powered.com/skills/playwright-test-implementation): Playwright test implementation is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/e2e-testing-fmarzochi
