e2e-playwright

e2e-playwright is a cursor rule for Cursor from blockmatic/basilic. It costs 0 tokens per session (907 once invoked), scanned A, original, MIT.

A set of Playwright rules for end-to-end tests in Next.js applications and Fastify APIs. End-to-end tests check complete user or API flows rather than one function.

In plain words
What is it for?
Writing Playwright end-to-end tests for Next.js and Fastify projects.
Why use it?
It provides consistent patterns for testing how the application works from the outside.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Writing Playwright end-to-end tests for Next.js and Fastify projects.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/blockmatic/basilic/e2e-playwright
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/blockmatic/basilic

Made for: Cursor.

Wrote 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.

agentmods badge for e2e-playwright

README.md
[![agentmods](https://agentmods.dev/badge/rules/blockmatic/basilic/e2e-playwright/github.svg)](https://agentmods.dev/rules/blockmatic/basilic/e2e-playwright)
Your own site
<a href="https://agentmods.dev/rules/blockmatic/basilic/e2e-playwright"><img src="https://agentmods.dev/badge/rules/blockmatic/basilic/e2e-playwright/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.

agentmods 80×15 button for e2e-playwright

Your own site · 80×15
<a href="https://agentmods.dev/rules/blockmatic/basilic/e2e-playwright"><img src="https://agentmods.dev/badge/rules/blockmatic/basilic/e2e-playwright.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00907
Opus 5.5 $0.00000 $0.00363
Sonnet 5.5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00091

Measured 22d ago against content hash 3cd2236e07c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

e2e-playwright 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 22d 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.

.cursor/rules/frontend/e2e-playwright.mdc · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Playwright patterns: @.agents/skills/playwright

Config

  • Frontend apps (apps/web) use Playwright E2E only — no Vitest/Testing Library unit or integration tests
  • No webServer; URLs from PLAYWRIGHT_APP_URL / PLAYWRIGHT_API_URL (env or --app / --api params)
  • Fastify: only --api param; test:e2e = URL-based, test:e2e:local = spawn API, poll, run, cleanup
  • Param format: --app=URL or --app URL, --api=URL or --api URL
  • CI: test:e2e:local only (spawn local servers; no Vercel URLs). Loopback http://localhost:3000 / :3001 — Portless is skipped in CI (no sudo/CA). Eve is not in the Playwright DAG; spawn pins EVE_COMMAND_URL / EVE_CHAT_URL to http://127.0.0.1:3004 / :3005.
  • Local: Next test:e2e:local = spawn Fastify + Next, poll, run all projects, kill. Fastify test:e2e:local = spawn API only. Root pnpm test:e2e = run both via scripts/run-e2e.mjs
  • workers: 1, fullyParallel: false — PGLite does not support concurrent writers; tests must run in series
  • Do not filter --project= in spawn scripts; run the full project DAG
  • Local/CI API spawn sets ALLOW_TEST=true, RATE_LIMIT_MAX=10000, and COINS_RATE_LIMIT_MAX=10000 (default API limit is 100/min per IP; GET /coins defaults to 10)
  • Local/CI API spawn sets COINS_USE_FIXTURE=true so GET /coins uses checked-in fixture quotes
  • Local/CI API spawn sets WEBAUTHN_RP_NAME=Test App when unset (passkey registration requires an RP display name)
  • Confirm dialogs use getByRole('alertdialog') (shadcn AlertDialog), not dialog

Projects (dependency graph)

public → auth → setup → {chromium, security, passkey-login}

  • public: no storageState
  • auth: empty storageState; numbered 01-…06- specs (file-name order is the convention — testMatch only selects files, it does not impose execution order)
  • setup: auth.setup.ts writes test-results/.auth/user.json (depends on auth)
  • chromium / security: storageState from setup file
  • passkey-login: empty storageState; dedicated [email protected]

Read the full file on GitHub · 47 lines

Changes

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.

  1. 22d ago Changed · +2 lines 3cd2236e07c5
  2. 23d ago Changed 33f2dbb1d81b
  3. 25d ago Changed 738891a56395
  4. 1mo ago Changed · +1 lines 3b01286cee25
  5. 1mo ago First seen · 44 lines · 0 tokens per session scan A fcb82613aaed

Subscribe to this mod's changes

e2e-playwright is a cursor rule published in the GitHub repository blockmatic/basilic (90 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 907 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-09-03.