e2e-testing

A set of Playwright patterns for end-to-end tests, which check a web application through realistic user actions. It covers both tests that use mocked data and tests that need a live server.

In plain words
What is it for?
Testing dashboards, landing pages, authentication, onboarding, profile setup, interviews, applications, browser extensions, accessibility, and security behavior.
Why use it?
It provides tested approaches for common problems such as login flows, multi-step forms, single-page app state, API responses, security checks, and mobile layouts.

Cursor rule for Claude Code

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.

agentmods
npx agentmods add rules/eliornl/rolemule/e2e-testing
Clone the repo
git clone --depth 1 https://github.com/eliornl/rolemule

Made for: Claude Code.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 3,522 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.03522
Opus 5 $0.00000 $0.01761
Sonnet 5 $0.00000 $0.00704
Haiku 4.5 $0.00000 $0.00352

Measured yesterday against content hash d3f66e93e008, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

e2e-testing 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 yesterday.

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.

.claude/rules/e2e-testing.mdc · 352 lines

How it starts

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

E2E Testing Patterns (Playwright)

Test Suite Overview

Tests are split into two tiers based on whether they require a live server.

Tier 1 — Mocked, CI-safe (no server needed)

File Covers
dashboard-pages.spec.ts All dashboard tabs, navbar, settings, career tools, sub-tabs
landing.spec.ts All landing sections, navbar, CTAs, footer, a11y, cookie consent
auth-pages.spec.ts Login/register/forgot/reset/verify form structure + validation
interview-prep.spec.ts All states, 4 question sub-tabs, generate/complete/mobile
profile-setup.spec.ts Profile setup (resume + 5 steps: basic → work → education → skills → prefs), field validation, navigation
application-detail.spec.ts 10 tabs (Optimize CV + Mock Session + Outreach), sub-tabs, cover letter, company, mobile layout
onboarding.spec.ts Auto-show/suppress, step nav, skip, complete, window.Onboarding API, a11y
complete-coverage.spec.ts Authenticated page coverage: dashboard, settings, career tools, history
security.spec.ts XSS, JWT format, API headers, content security (all mocked)
extension.spec.ts Manifest V3, content script, service worker, popup JS
error-handling.spec.ts 401/403/429/500 + mocked network errors, form validation
smoke.spec.ts Critical path (~46 @smoke tests) — this is what CI runs (e2e-smoke in .github/workflows/ci.yml)
workflow-mocked.spec.ts Workflow processing/complete/error states (mocked)
api-validation.spec.ts API response shapes: full/partial/null fields, error bodies, auth tokens
form-edge-cases.spec.ts Unicode, boundary values, special characters, XSS
auth-complete.spec.ts Google OAuth (mocked), email verification, account lockout
dashboard.spec.ts Dashboard nav, mocked settings, tools, history navigation
journey.spec.ts Multi-step user journeys: new app → results, career tools flow, auth redirect
keyboard-nav.spec.ts Tab/Enter/Space/Escape/Backspace/ArrowDown across all pages
visual-regression.spec.ts Page structure verification at desktop/tablet/mobile viewports
performance.spec.ts Page load assertions (mocked)
accessibility.spec.ts ARIA, landmarks, heading hierarchy
rate-limit.spec.ts 429 + Retry-After handling: login, registration, career tools, workflow
file-upload.spec.ts Resume/job upload, fixture files, API mock responses, error handling
websocket.spec.ts Workflow processing/failed states, progress polling, network resilience

Read the full file on GitHub · 352 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. yesterday First seen · 352 lines · 0 tokens per session scan A d3f66e93e008

Subscribe to this mod's changes

e2e-testing is a cursor rule published in the GitHub repository eliornl/rolemule (37 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,522 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.

Related

Other cursor rules, from other repositories

cursorrules

Agent2 is a framework for building production AI agents with typed HTTP APIs. PydanticAI handles the agent loop. Agent2 handles everything else: API, auth, pause/resume, approvals, provider routing, knowledge search.

Artesiana/agent2 · 399 tokens

product-manager

Holistic product leader who owns the full product lifecycle — from discovery and strategy through roadmap, stakeholder alignment, go-to-market, and outcome measurement. Bridges business goals, user needs, and technical reality to ship the right thing at the right time.

Treevu-ai/cli-market-world · 5,350 tokens

api-tester

Expert API testing specialist focused on comprehensive API validation, performance testing, and quality assurance across all systems and third-party integrations.

Treevu-ai/cli-market-world · 23 tokens

developer-advocate

Expert developer advocate specializing in building developer communities, creating compelling technical content, optimizing developer experience (DX), and driving platform adoption through authentic engineering engagement. Bridges product and engineering teams with external developers.

Treevu-ai/cli-market-world · 38 tokens

architectural-and-structural-rules

The project follows a layered architecture with clear separation of concerns.

mrharishkumar/fastapi-cursor-boilerplate · 559 tokens

angular-20

This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.

angular/angular · 0 tokens