playwright
Skill by prowler-cloud
Playwright E2E testing patterns for writing tests in Prowler's UI. It sets out the Page Object Model, selector priority, file layout, tagging and test commands. Aimed at developers writing end-to-end tests with Playwright.
Install playwright
Built from the published package, never by AI.
git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.claude/skills && cp -r /tmp/prowler/skills/playwright ~/.claude/skills/playwrightRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/prowler-cloud/prowler /tmp/prowler && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/prowler/skills/playwright ~/.gemini/antigravity-cli/skills/playwrightAntigravity 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
The playwright skill gives an AI assistant conventions for writing Playwright end-to-end tests. It covers the Page Object Model, a selector priority that favors getByRole and getByLabel, a file layout with one spec file per page, and tags for test cases. When Playwright MCP tools are available, the skill asks the assistant to explore the page with navigation and snapshots before writing test code.
It also covers reuse of existing page objects, moving shared code into BasePage or helpers.ts, a markdown format for test documentation, and commands that run tests with the project-pinned @playwright/test 1.56 binary. Prowler-specific UI details are in a separate reference file. It is for developers writing E2E tests in the Prowler ui directory.
Written from the project's SKILL.md and checked against it.
What it can do
- MCP exploration workflowNavigate, snapshot and screenshot the page before writing a test, when Playwright MCP tools are available.
- Selector priorityPrefers getByRole and getByLabel, uses getByText for static content and getByTestId as a last resort.
- Page Object ModelProvides a BasePage class and page classes that extend it for each tested page.
- Page object reuseChecks existing page objects in tests/ before creating new ones.
- Scope detectionCreates one test or a full suite depending on how the request is worded.
- Test taggingAdds priority, type, feature and test ID tags to each test.
- Test documentationProvides a markdown template for documenting each test case.
- Test commandsRuns tests by project, by tag, in list mode, in UI mode or in debug mode.
What you need
- pnpm, used to run the project-pinned Playwright binary
- @playwright/test 1.56 in the Prowler ui project
- Prowler repository with the ui/tests directory
- Playwright MCP tools (optional, for the exploration workflow)
Try asking
- Write a Playwright test for the sign-up form in ui/tests
- Add one test to the login spec that checks the error message
- Generate a full E2E test suite for the providers page
Good to know
- Written for Prowler's ui/tests layout and conventions.
- The MCP exploration step applies only when Playwright MCP tools are available.
- Tests go in one spec file per page, except the ui/tests/auth folder.
Security check
B- Allowed to use Edit, Write, Bash without limitsIn
SKILL.md
Checked automatically: skills/playwright/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadEditWriteGlobGrepBashWebFetchWebSearchTask
-
SKILL.md10 KB -
references/prowler-e2e.md565 B
Alternatives to playwright
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: common questions
Does this skill require Playwright MCP?
No. If MCP is not available, the skill says to write tests from docs and code analysis instead of exploring the page first.
Which selectors does it recommend?
It recommends getByRole and getByLabel first, getByText for static content and getByTestId as a last resort. It says to avoid CSS class and id selectors.
Where are the Prowler-specific details?
They are in references/prowler-e2e.md, which covers authentication setup, environment variables and test IDs.
How do I install playwright?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is playwright free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is playwright safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use edit, write, bash without limits). Review the code before you install. How grades work.
What are alternatives to playwright?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
