# Playwright E2E testing

> Playwright E2E testing is an open-source agent skill for developer tools. Guides an agent through running and writing Playwright E2E tests for Pipeline City. 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/Database-Tycoon/tycoon-cli/tree/main/skills/playwright-e2e-testing
- **Repository:** https://github.com/database-tycoon/tycoon-cli
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** playwright-e2e-testing
- **Collection:** https://github.com/Database-Tycoon/tycoon-cli
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill is a short reference for end-to-end testing of the Pipeline City web frontend with Playwright. It lists the commands to run the full suite from the web directory, along with two screenshot utilities that render a view or replay to an image file.

It also explains how the existing tests are organized. A positive-path spec pins its results to a fixed city fixture through route interception, and the HUD, overlay and role lens specs should be re-checked whenever those components change. Before a frontend task is treated as done, the skill directs the agent to run a TypeScript type check with no emit from the web directory.

The skill assumes a checkout of the Pipeline City web project with Node.js and Playwright installed, and it is written for the tests in that project rather than for general Playwright use.

## When your agent uses it

> Guidelines for running and writing Playwright End-to-End (E2E) tests for Pipeline City frontend components, HUD interactions, and role lenses.

## What it can access

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

- [Instructions only, no scripts](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/skills/playwright-e2e-testing)
- [License: MIT](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/skills/playwright-e2e-testing)

## Features

- **Full suite execution:** Shows how to run the complete Playwright test suite from the web directory.
- **Screenshot utilities:** Covers two scripts that capture a rendered view or a replay to an image file.
- **Fixture-based route interception:** Explains how the positive-path spec is pinned to a fixture file via route interception.
- **Component regression checklist:** Lists the HUD, interaction and lens specs to re-verify when overlays change.
- **TypeScript check step:** Requires a no-emit type check before frontend work is considered complete.

## Good for

- Run the Pipeline City end-to-end test suite after a frontend change
- Capture a screenshot of a city view for visual review
- Check the HUD and role lens tests after editing an overlay component
- Add a new Playwright test that uses the existing city fixture

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/playwright-e2e-testing` to use it in all your projects:

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/playwright-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/Database-Tycoon/tycoon-cli.git --path skills/playwright-e2e-testing
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git
```

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

## FAQ

### Which project does Playwright E2E testing apply to?

It is written for the Pipeline City frontend in the web directory of the tycoon-cli repository and its e2e tests.

### What commands does Playwright E2E testing tell the agent to run?

It names npm run e2e or npx playwright test for the full suite, the shot.mjs and replayshot.mjs utilities, and npx tsc --noEmit for type checking.

### Does Playwright E2E testing need any scripts or extra files?

The skill folder contains only its SKILL.md. The instructions refer to test files and a fixture inside the web project.

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

Copy the skill folder from GitHub to ~/.claude/skills/playwright-e2e-testing to use it in all your projects, or to .claude/skills/playwright-e2e-testing in one project.

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

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

## Where this comes from

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

## Alternatives

- [E2E testing](https://ai-powered.com/skills/e2e-testing-fmarzochi): E2E testing is an open-source agent skill for developer tools.
- [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 verification](https://ai-powered.com/skills/playwright-verification-ajyadav013): Playwright verification is an open-source agent skill for browser automation.
- [Playwright skill](https://ai-powered.com/skills/playwright-skill): Playwright skill is an open-source agent skill for browser automation.
- [Playwright test implementation](https://ai-powered.com/skills/playwright-test-implementation): Playwright test implementation is an open-source agent skill for developer tools.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing 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.

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