playwright-ui-testing
Run deterministic Playwright UI tests for local or test environments, including isolated browser profiles, traces, video, and multi-browser coverage. Use when the user asks for /playwright, end-to-end tests, reproducible UI testing, visual regression, or CI-style browser verification.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- playwright-ui-testing
- description
- Run deterministic Playwright UI tests for local or test environments, including isolated browser profiles, traces, video, and multi-browser coverage. Use when the user asks for /playwright, end-to-end tests, reproducible UI testing, visual regression, or CI-style browser verification.
03 SKILL.md 正文
Playwright UI testing
Scope
Use this skill for reproducible application testing, not for managing real user accounts, Slack app settings, OAuth consent, or persistent personal browser sessions. Route those tasks to browser-control and Aside.
Preflight
- Identify the target repository and its existing test runner. Do not assume a framework, dev-server command, port, URL, or test account.
- Check the available runner before changing anything, for example
npx playwright --version, the project's package scripts, or its existing browser-test documentation. - Prefer the repository's existing tests and server helpers. If a new script is needed, keep it under the project test or temporary artifact path, never in a global skill directory.
- Use test-only accounts and data. Never inject production credentials, scrape cookies, disable authentication, or run destructive flows against production without explicit approval.
Test loop
- Start or attach to the declared test environment.
- Wait for the rendered application state before selecting elements.
- Use role, label, test-id, or other stable locators. Avoid arbitrary sleeps and brittle coordinates.
- Assert the intended behavior and capture useful failure evidence: screenshot, trace, console error, or video when configured.
- Close isolated browser contexts and preserve only requested artifacts.
Tool choice
- Use native Playwright tests for repeatable project tests and CI.
- Use the Playwright CLI when terminal-driven interactive automation is specifically requested.
- Use isolated profiles, traces, video, or multi-browser runs only when they add diagnostic or acceptance value.
- For exploratory work in a signed-in live browser, use
browser-controlinstead.
Completion
Report the command or test suite, target environment, pass/fail assertions, and artifact paths. Never claim a UI flow passed from navigation alone; verify the expected rendered state or API-visible result.
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.