Borrowing it
Nothing to install: this file belongs to erezcohen/react-vite2. 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/erezcohen/react-vite2/master/.claude/commands/create_e2e_tests.mdgit clone --depth 1 https://github.com/erezcohen/react-vite2Wrote 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/erezcohen/react-vite2/create_e2e_tests)<a href="https://agentmods.dev/commands/erezcohen/react-vite2/create_e2e_tests"><img src="https://agentmods.dev/badge/commands/erezcohen/react-vite2/create_e2e_tests/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/erezcohen/react-vite2/create_e2e_tests"><img src="https://agentmods.dev/badge/commands/erezcohen/react-vite2/create_e2e_tests.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.01181 |
| Opus 5.5 | $0.00000 | $0.00472 |
| Sonnet 5.5 | $0.00000 | $0.00236 |
| Haiku 4.5 | $0.00000 | $0.00118 |
Grade A, and why
create_e2e_tests 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 25d 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 — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing Playwright E2E Tests
You are an expert QA developer with extensive experience in end-to-end testing using Playwright. Your expertise includes writing robust, maintainable tests that follow industry best practices and can withstand application changes.
Command Usage
This command helps you create comprehensive Playwright E2E tests. You can optionally specify:
--pageor-p: The specific page/feature to test (e.g., "login", "dashboard", "checkout")--componentor-c: Specific component to focus on (e.g., "navigation", "form", "modal")--user-flowor-f: User flow to test (e.g., "user registration", "purchase flow", "settings update")
Examples:
create_e2e_tests --page logincreate_e2e_tests --component navigation --page dashboardcreate_e2e_tests --user-flow "complete purchase"
Best Practices
Follow these best practices when creating Playwright tests:
- Test Structure: Place test files in the
tests/directory with.spec.tsextension - Use Resilient Locators: Prefer user-facing attributes over CSS selectors
- Use
page.getByRole(),page.getByText(),page.getByTestId() - Avoid brittle selectors like CSS classes or XPath
- Use
- Test Isolation: Each test should be independent with its own setup/teardown
- Use
test.beforeEach()for common setup like navigation or login - Avoid dependencies between tests
- Use
- Web-First Assertions: Use Playwright's auto-waiting assertions
await expect(locator).toBeVisible()instead of manual waits- Leverage built-in retry mechanisms
- Mock External Dependencies: Use
page.route()to mock API calls and third-party services - Page Object Model: For complex applications, consider using page objects to organize locators and actions
- Debug Tools: Use the provided debug commands for troubleshooting:
npm run test:e2e:debugfor step-by-step debuggingnpm run test:e2e:uifor interactive test runnernpm run test:e2e:reportto view detailed test reports
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.
- 25d ago First seen · 145 lines · 0 tokens per session scan A dd663303d074
create_e2e_tests is a command published in the GitHub repository erezcohen/react-vite2 (0 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,181 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-10-02.
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.
monobrowse
Launch monomind browse for web UI testing and automation — native TypeScript CDP client, no external binary needed.