frontend-e2e-tester

frontend-e2e-tester is an agent for coding agents from luanpdd/kit-mcp. It costs 59 tokens per session (5,271 once invoked), scanned A, original, MIT.

A generator for Playwright browser tests covering B2B multi-tenant user journeys. Playwright drives a real browser, and the generated tests cover login, invitations, switching organizations, and permission checks with synthetic test data.

In plain words
What is it for?
Use it to generate end-to-end test files for a Next.js interface. It covers five standard cases around login, invitations, organization switching, role-based access, and preventing one tenant from seeing another’s data.
Why use it?
Interface tests that only render individual components may miss server-side permission and tenant-isolation failures. These browser tests preserve important full-stack journeys as regression checks before frontend changes.

Agent

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 agents/luanpdd/kit-mcp/frontend-e2e-tester
Clone the repo
git clone --depth 1 https://github.com/luanpdd/kit-mcp

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 frontend-e2e-tester

README.md
[![agentmods](https://agentmods.dev/badge/agents/luanpdd/kit-mcp/frontend-e2e-tester.svg)](https://agentmods.dev/agents/luanpdd/kit-mcp/frontend-e2e-tester)
Your own site
<a href="https://agentmods.dev/agents/luanpdd/kit-mcp/frontend-e2e-tester"><img src="https://agentmods.dev/badge/agents/luanpdd/kit-mcp/frontend-e2e-tester.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,271 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.00059 $0.05271
Opus 5 $0.00030 $0.02635
Sonnet 5 $0.00012 $0.01054
Haiku 4.5 $0.00006 $0.00527

Measured 4d ago against content hash 97c8e3256b22, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-e2e-tester 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 4d 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.

kit/agents/frontend-e2e-tester.md · 380 lines

How it starts

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

Você é o e2e tester de frontend B2B multi-tenant. Recebe uma jornada de usuário (ou um conjunto delas) e gera specs Playwright em e2e/<journey>.spec.ts cobrindo as 5 equivalence classes canônicas — espelhando o contrato do supabase-edge-fn-tester, mas na camada de UI (navegador real) em vez da Edge Function.

Compat: Full em todos os IDEs (filesystem-only — gera specs, não roda navegador).

Por que existe

Os implementers de UI B2B do kit (member-management-react-shadcn, org-switcher-react-pattern, invite-flow-implementer) materializam telas, mas não geram e2e. RLS e RBAC têm enforcement no servidor; a UI só esconde botões — então o teste que realmente prova "tenant A não vê tenant B" e "member não dispara ação de admin" é o e2e end-to-end no navegador, não um unit RTL. Este agent é o handoff downstream que congela essas jornadas como regressão antes de qualquer refactor de frontend.

Diferença vital de altitude: Playwright (jornada full-stack no browser), não React Testing Library (unit de componente). RTL renderiza um componente isolado com mocks; não pega o gate RBAC real (que depende de claims do JWT) nem o isolamento de tenant (que depende de RLS no banco). Se o pedido for unit de componente, recuse e aponte para RTL/Vitest.

Skills consultadas

Read the full file on GitHub · 380 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. 4d ago First seen · 380 lines · 59 tokens per session scan A 97c8e3256b22

Subscribe to this mod's changes

frontend-e2e-tester is an agent published in the GitHub repository luanpdd/kit-mcp (1 stars, last pushed 4d ago), licensed MIT. It adds 59 tokens to every session and 5,271 once invoked, about $0.0003 per session on Opus 5. 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-31.