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.
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-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/AI-Unified-Process/marketplace /tmp/marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/marketplace/aiup-nestjs-nextjs/skills/playwright-test ~/.gemini/antigravity-cli/skills/playwright-testAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
