playwright-cli
Thin CLI adapter for Playwright UI suites and smokes. Defer when/whether and evidence policy to the ui-browser-testing discipline skill; this skill covers how to invoke CLI/test commands and local Playwright tooling.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- playwright-cli
- license
- MIT
- metadata
- { "scope": "runtime", "author": "ai-specs", "version": "1.0", "auto_invoke": [ "Running npx playwright test or UI smoke commands", "Installing Playwright browsers or using playwright codegen" ] }
- description
- Thin CLI adapter for Playwright UI suites and smokes. Defer when/whether and evidence policy to the ui-browser-testing discipline skill; this skill covers how to invoke CLI/test commands and local Playwright tooling.
03 SKILL.md 正文
Playwright CLI Adapter
Defer to the ui-browser-testing discipline skill for when/whether to run
UI verification and how to record evidence. This skill covers how on the
CLI surface.
Config commands
From [recipes.playwright-ui-flow.config]:
- Prefer
ui_smoke_commandfor pre-merge smoke. - Use
ui_test_commandfor the full suite. - If unset, discover (e.g.
package.jsonscripts namedtest:e2e/test:ui/playwright) and propose config — do not hardcode forever.
Run exactly the configured string in the project root (or documented cwd).
Common CLI operations
# Suite / smoke (prefer configured commands above)
npx playwright test
npx playwright test --grep @smoke
# Browsers (once per machine/CI image)
npx playwright install
# Authoring helpers
npx playwright codegen <url>
npx playwright show-report
If playwright_config is set, pass it through (--config <path>) when the
configured command does not already include it.
Pitfalls
- Prefer project-local Playwright (
npx/ package scripts) over a global binary so versions match the repo. - Headless is normal for suite/smoke; headed/debug is for local investigation.
- Do not replace a failing suite run with ad-hoc MCP clicks when claiming verification — fix tests or record the failure.
04 同仓库更多 Skills
test-skill
Test skill for fixture purposes.
obsidian-markdown
Fixture skill for obsidian-markdown.
obsidian-cli
Fixture skill for obsidian-cli.
obsidian-bases
Fixture skill for obsidian-bases.
json-canvas
Fixture skill for json-canvas.
defuddle
Fixture skill for defuddle.