Borrowing it
Nothing to install: this file belongs to DIGI-UW/OpenELIS-Global-2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/DIGI-UW/OpenELIS-Global-2/develop/.ai/skills/playwright/commands/write-playwright-test.mdgit clone --depth 1 https://github.com/DIGI-UW/OpenELIS-Global-2Wrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/digi-uw/openelis-global-2/write-playwright-test)<a href="https://agentmods.dev/commands/digi-uw/openelis-global-2/write-playwright-test"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/write-playwright-test/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/digi-uw/openelis-global-2/write-playwright-test"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/write-playwright-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00605 |
| Opus 5.5 | $0.00000 | $0.00242 |
| Sonnet 5.5 | $0.00000 | $0.00121 |
| Haiku 4.5 | $0.00000 | $0.00060 |
Grade A, and why
write-playwright-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write Playwright Test
Use this command to author new Playwright tests using a source-first, first-time-correct workflow.
User Input
$ARGUMENTS
Interpret input best-effort:
/write-playwright-test- scaffold a new Playwright test from requirements/write-playwright-test <spec-file>- target/create a specific spec file/write-playwright-test <spec-file> --project <name>- force target project
Workflow
-
Preflight (TDD Red phase)
- Confirm target user story / acceptance criteria.
- Identify feature route and expected user-visible behavior.
- Decide project target:
core-app,core-demo,harness,harness-demo, or the matching*-demo-videofor recording.
-
Read source before writing selectors
- Read relevant component source for the page under test.
- Read existing Playwright fixture/helper patterns to reuse.
- If selectors are unstable, add/plan
data-testidsupport first.
-
Write from template
- Start from
.ai/skills/playwright/templates/PlaywrightE2E.spec.ts.template. - Keep
testInfoandvideoPause()conventions. - Prefer
getByRole/getByLabel/data-testidselectors. - Add debug-context capture hooks for fragile or async-heavy workflows.
- NEVER use
response.ok()as assertion — usewaitForResponsefor sync only, then assert on visible UI - For Carbon checkboxes/radios, click the
<label>(NEVER{ force: true }) - For autocomplete fields, wait for suggestion dropdown and click (do NOT just type + Tab)
- Use
test.step()for multi-step workflows - Call
isVisible()directly — never add.catch(() => false)
- Start from
-
Register spec in Playwright config
- Add new spec to the correct
testMatchproject list infrontend/playwright.config.ts. - For demo workflow tests, update
CORE_DEMO_TESTSorHARNESS_DEMO_TESTS.
- Add new spec to the correct
-
Validate and run narrow scope
- Validate registration:
python3 .ai/skills/playwright/scripts/validate-playwright-project.py <spec> - Run the narrowest command:
cd frontend && npm run pw:test -- <spec> --project=<project>
- Validate registration:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 71 lines · 0 tokens per session scan A 05dd4fdad11c
write-playwright-test is a command published in the GitHub repository DIGI-UW/OpenELIS-Global-2 (272 stars, last pushed today), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 605 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
expect
Diff-aware AI browser testing — reads the git diff, maps changes to affected pages via the route map, generates a targeted test plan, and executes it via agent-browser (Rust daemon + CDP, ARIA-tree-first) with pass/fail reporting. Use when testing UI changes, verifying PRs before merge, or running regression checks on…
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
record
Record a browser walkthrough of a URL using Antigravity (agy). Generates .webm video, screenshots, and a report. Auto-converts to MP4 if ffmpeg is available.
amazing-e2e-check
Run explicitly requested E2E, browser, device, or installed-deployment scenarios in an independent verification workflow.
verify-pr
Verify a PR's frontend changes through browser automation.
auto-verify
A command for checking a website's front-end user experience with Playwright, a tool that automates web browsers.