# Playwright test implementation

> Playwright test implementation is an open-source agent skill for developer tools. Guides an agent in writing and reviewing Playwright specs with reliable selectors. 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/aws-solutions/konductor/tree/main/skills/playwright-test-implementation
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** playwright-test-implementation
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill gives the agent a structured approach to authoring Playwright end-to-end specs for a web app whose pages and selectors have already been discovered. It covers signing in once inside a global setup script, saving the session with storageState, and reusing it across specs, including how to opt individual login-flow specs out of that shared session.

The guidance walks through a fallback order for choosing locators, favoring test IDs and role queries scoped to a container before falling back to labels, placeholders or aria-labels. It also includes patterns for Cloudscape UI components, such as table row radios, tiles, dropdowns and modal footers, where standard ARIA queries often fail. A checklist of common pitfalls and a review gate with critical, important and suggested findings are included for reviewing existing specs.

The skill expects an existing Playwright project and does not scaffold one or install Playwright; it instead points the user to the install commands and a project check. It assumes TypeScript config files and credentials supplied through environment variables.

## When your agent uses it

> Use when writing or reviewing Playwright specs for a discovered web app, or fixing flaky selectors. Covers selectors, global-setup.ts and storageState sessions, Cloudscape locators.

## What it can access

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

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/playwright-test-implementation)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/playwright-test-implementation)

## Features

- **Session reuse setup:** Shows how to sign in once in global setup, save storage state and reuse it across all specs.
- **Selector fallback chain:** Orders locator choices from test IDs and scoped roles down to aria-labels to avoid fragile selectors.
- **Cloudscape component patterns:** Provides locators for Cloudscape tables, tiles, dropdowns and modals that standard ARIA queries miss.
- **Login-flow spec isolation:** Explains how to opt specific specs out of the global signed-in session so the login page can be tested.
- **Common pitfall checklist:** Lists frequent Playwright setup and selector mistakes with the fix for each.
- **Spec review gate:** Defines critical, important and suggested checks for reviewing existing Playwright specs.

## Good for

- Write Playwright specs for a newly discovered web app
- Set up a global login and storageState for authenticated tests
- Fix flaky selectors in an existing Playwright suite
- Review a Playwright spec for fragile locators and missing session handling
- Write tests against a Cloudscape-based UI

## Install

### Claude Code

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

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/playwright-test-implementation` 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/aws-solutions/konductor.git --path skills/playwright-test-implementation
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

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

## FAQ

### Does Playwright test implementation install Playwright?

No. It assumes Playwright is already part of the project and tells the user to add it with npm and install browsers themselves.

### What does Playwright test implementation need before it runs?

An existing Playwright project and a set of pages and selectors discovered from the target app, plus login credentials supplied through environment variables.

### Does Playwright test implementation cover Cypress or test planning?

No. It directs Cypress specs to a separate cypress-test-implementation skill and test planning to e2e-test-strategy.

### How does Playwright test implementation handle sign-in for authenticated tests?

It shows a global setup script that logs in once, saves storage state to a fixtures folder, and wires it into the Playwright config.

### How do I install Playwright test implementation in Claude Code?

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

### Does Playwright test implementation 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 test implementation?

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 test implementation?

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

## Where this comes from

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

## Alternatives

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