# E2E playwright

> E2E playwright is an open-source agent skill for developer tools. Guides an agent to write and run Playwright end-to-end tests for acceptance criteria. 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/Nabwinsaud/forgeline/tree/main/skills/e2e-playwright
- **Repository:** https://github.com/nabwinsaud/forgeline
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** e2e-playwright
- **Collection:** https://github.com/Nabwinsaud/forgeline
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill sets out how to turn acceptance criteria into Playwright end-to-end journeys, one test per user-facing criterion. It covers choosing accessible selectors, replacing fixed sleeps with web-first assertions, and building per-test fixtures and data through the API rather than the UI.

It also describes the workflow around the tests: a Playwright config that reads a base URL from an environment variable and can start a local dev server, bringing a local stack up and down with Docker Compose, and running suites against dev or staging environments tagged as smoke tests. On failure the agent is directed to inspect traces, console output and failed network requests before changing code.

Flaky tests are handled by reproducing them with repeated runs and fixing the root cause instead of adding delays or retries. The skill expects a Playwright project with a configured test directory and, for local runs, a domain harness that defines the stack and test accounts.

## When your agent uses it

> Writing and running Playwright end-to-end tests for factory jobs - one journey per acceptance criterion, role and label selectors, web-first assertions instead of sleeps, fixtures and test data, local stack up/down, traces and screenshots on failure, flake handling, and targeting a deployed URL through a baseURL env var. Use when adding or running e2e tests.

## What it can access

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

- [Instructions only, no scripts](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/e2e-playwright)
- [License: MIT](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/e2e-playwright)

## Features

- **Journey-based test writing:** Guides writing one focused end-to-end test per user-facing acceptance criterion.
- **Accessible selector guidance:** Prefers role, label and text selectors and discourages CSS chains and XPath.
- **Web-first assertions:** Uses auto-retrying assertions and response waits instead of fixed sleeps.
- **Isolated fixtures and data:** Creates unique per-test data through the API with cleanup after each test.
- **Local stack management:** Covers starting dependencies, migrations, seeding and tearing down the stack.
- **Deployed URL targeting:** Runs the same suite against dev or staging through a base URL variable, never production.
- **Failure and flake triage:** Uses traces, screenshots and repeated runs to diagnose and fix flaky tests.

## Good for

- Write an end-to-end test for a new user-facing acceptance criterion
- Run the Playwright suite locally against the stack
- Run smoke tests against a deployed dev environment
- Diagnose a failing Playwright test using its trace
- Track down and fix a flaky end-to-end test

## Install

### Claude Code

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

```sh
/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgeline
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/e2e-playwright` 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/Nabwinsaud/forgeline.git --path skills/e2e-playwright
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git
```

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

## FAQ

### Which tools does E2E playwright assume?

It assumes Playwright tests written in TypeScript, a playwright.config file and, for local runs, Docker Compose services defined by a domain harness.

### Can E2E playwright run against production?

No. The skill restricts deployed runs to dev and staging URLs supplied by the job context and says never to target production.

### How does E2E playwright handle flaky tests?

It asks the agent to reproduce the flake with repeated runs and fix the cause, not to add sleeps, longer timeouts or remove assertions.

### When does E2E playwright apply?

It applies when the agent is adding or running end-to-end tests.

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

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

### Does E2E playwright 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 playwright?

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 playwright?

The closest alternatives to E2E playwright are E2E testing, E2E testing edho ferdian, Playwright skill, Playwright generate test and Webapp testing.

## 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 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.
- [Playwright generate test](https://ai-powered.com/skills/playwright-generate-test): Playwright generate test is an open-source agent skill for browser automation.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing is an open-source agent skill for browser automation.
- [Run smoke tests](https://ai-powered.com/skills/run-smoke-tests): Run smoke tests is an open-source agent skill for developer tools.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing): Webapp testing is an open-source agent skill for browser automation.
- [Playwright](https://ai-powered.com/skills/playwright): Playwright is a free agent skill for browser automation.

---
Source: https://ai-powered.com/skills/e2e-playwright
