playwright-core
Skill by zebbern
Provides Playwright testing guidance for E2E, API, component, visual, accessibility and security tests. Built for developers who write and debug TypeScript or JavaScript test suites.
Install playwright-core
Built from the published package, never by AI.
git clone --depth 1 https://github.com/zebbern/claude-code-guide /tmp/claude-code-guide && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-guide/skills/playwright/core ~/.claude/skills/playwright-coreRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/zebbern/claude-code-guide /tmp/claude-code-guide && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-guide/skills/playwright/core ~/.gemini/antigravity-cli/skills/playwright-coreAntigravity 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
playwright-core is an agent skill that gives an AI assistant 46 reference guides on Playwright testing. The guides cover selectors, assertions, fixtures, network mocking, authentication, debugging, and framework recipes for React, Next.js, Vue, and Angular. Examples are given in TypeScript and JavaScript.
The skill opens with golden rules, such as preferring getByRole() over CSS or XPath, avoiding page.waitForTimeout(), and mocking only external services. An index maps common tasks and debugging problems to the matching guide. The source describes the guidance as opinionated and production-tested, and it is aimed at developers who write and maintain Playwright test suites.
Written from the project's SKILL.md and checked against it.
What it can do
- LocatorsGuidance on choosing selectors, with getByRole() preferred over CSS or XPath.
- Assertions and waitingWeb-first assertions that auto-retry, and waiting patterns without fixed timeouts.
- Network mockingGuidance on mocking third-party services, with a separate when-to-mock guide.
- Auth flowsLogin and authentication patterns for Playwright tests.
- API testingGuide for REST and GraphQL API testing with Playwright.
- Visual and accessibility testingDedicated guides for visual regression and accessibility checks.
- DebuggingA debugging workflow, an error message index, flaky test guidance and common pitfalls.
- Framework recipesRecipes for Next.js, React (CRA, Vite), Vue 3 and Nuxt, and Angular.
- Fixtures and configGuidance on test.extend() fixtures, hooks and Playwright configuration.
- Security testingA dedicated guide for security testing with Playwright.
Try asking
- Write a Playwright test for my login form using getByRole locators
- Help me fix a flaky Playwright test in my Next.js app
- Set up network mocking for a payment gateway in my Playwright tests
Good to know
- The guidance is described as opinionated.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/playwright/core/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
accessibility.md53 KB -
angular.md41 KB -
api-testing.md51 KB -
assertions-and-waiting.md27 KB
Show all 47 files
-
auth-flows.md33 KB -
authentication.md49 KB -
browser-apis.md24 KB -
browser-extensions.md15 KB -
canvas-and-webgl.md20 KB -
clock-and-time-mocking.md19 KB -
common-pitfalls.md44 KB -
component-testing.md46 KB -
configuration.md25 KB -
crud-testing.md31 KB -
debugging.md27 KB -
drag-and-drop.md29 KB -
electron-testing.md22 KB -
error-and-edge-cases.md39 KB -
error-index.md58 KB -
file-operations.md26 KB -
file-upload-download.md30 KB -
fixtures-and-hooks.md33 KB -
flaky-tests.md31 KB -
forms-and-validation.md39 KB -
i18n-and-localization.md24 KB -
iframes-and-shadow-dom.md21 KB -
locator-strategy.md20 KB -
locators.md28 KB -
mobile-and-responsive.md58 KB
And 17 more files on GitHub.
Alternatives to playwright-core
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
playwright-core: common questions
Does it cover React and Vue testing?
Yes. The source includes framework recipes for React (CRA, Vite), Vue 3 and Nuxt, along with Next.js and Angular.
Which languages do the examples use?
The source says the guides include TypeScript and JavaScript examples throughout.
When should I mock in Playwright tests?
The golden rules say to mock external services only, such as third-party APIs, payment gateways and email, and never your own app.
How do I install playwright-core?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is playwright-core free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is playwright-core safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to playwright-core?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
