Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

playwright-test

Skill by AI-Unified-Process

Writes Playwright browser end-to-end tests for a Next.js frontend running against a NestJS API. Tests are tagged to use cases (UC-XXX) and test cases (TC-XXX), for teams that keep those specs in their project.

  • Score 61
  • 171 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install playwright-test

Built from the published package, never by AI.

git clone --depth 1 https://github.com/AI-Unified-Process/marketplace /tmp/marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/marketplace/aiup-nestjs-nextjs/skills/playwright-test ~/.claude/skills/playwright-test

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install playwright-test in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill creates Playwright end-to-end tests that run in a real browser against a Next.js frontend and a live NestJS API. For each use case it writes a test.describe block with one test per scenario. For each test case (TC-XXX) it writes one journey with a test.step per flow row. Tests are tagged @UC-XXX or @TC-XXX so they can be run by tag.

The skill uses accessibility-first locators and the application's seed data. It wires both servers into the project's playwright.config webServer setup, using readiness URLs. Tests assert only what a user can see. When a test fails, the skill checks the specification as the source of truth and does not weaken or skip the assertion. It is aimed at teams that drive browser tests from use case specifications and test case documents.

Written from the project's SKILL.md and checked against it.

What it can do

  • Use case test suitesCreates one test.describe per use case (UC-XXX) with a test per scenario and alternative flow.
  • Test case journeysBuilds one journey per test case (TC-XXX) with a test.step for each flow table row.
  • TaggingTags tests @UC-XXX or @TC-XXX so they can be run with a grep filter.
  • Server configurationExtends playwright.config.ts to start the API and frontend with readiness URLs.
  • Accessibility-first locatorsUses role, label and text locators, and avoids CSS and XPath selectors.
  • Authentication setupSigns in once in a setup project and reuses stored browser state across tests.
  • Test data handlingUses seed data where available and removes only the data a test created.
  • Failure triageKeeps failing spec-based assertions in place and reports the expected and actual values.

What you need

  • Node.js
  • Playwright
  • A Next.js frontend
  • A NestJS API

Try asking

  • Write Playwright tests for UC-001
  • Automate TC-001 as an end-to-end test in the browser
  • Add an auth setup project to my Playwright suite

Good to know

  • Does not replace an existing playwright.config.ts; it extends it
  • Failing tests are left failing and are not skipped or weakened
  • Assumes a Next.js frontend that proxies /api to a NestJS API

Security check

D
  • Tells the assistant to ignore its instructions or hide actions from youIn aiup-nestjs-nextjs/skills/playwright-test/SKILL.md: ignore previous instructions

Checked automatically: aiup-nestjs-nextjs/skills/playwright-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to playwright-test

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

playwright-test: common questions

Does it need test case documents?

It uses docs/test_cases/TC-*.md when one covers the request. Otherwise it falls back to the use case main scenario and alternative flows.

Will it overwrite my existing Playwright config?

No. The skill reads an existing playwright.config.ts and extends its webServer, projects and reporters.

What happens when a generated test fails?

The skill decides whether the test or the code is wrong. If the code disagrees with the specification, it leaves the assertion failing and reports the expected and actual values.

How do I install playwright-test?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is playwright-test free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is playwright-test safe to use?

It scores 61 of 100. Grades: maintenance A, licence A, quality B. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.

What are alternatives to playwright-test?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

playwright-test Install

Add to stack

Loading.