Every time an engineering team speeds up PR velocity (especially with AI coding agents), handwritten E2E suites fall behind in the exact same places:

  • A button still visible to a non-admin role that triggers a 403 Forbidden on click
  • Silent 404/500 API regressions on edge routes
  • Uncaught JS exceptions, broken dialogs, or raw NaN / undefined in the DOM

Most "AI QA" tools try to fix this by pointing an LLM agent at your browser. In practice, that usually means slow runs, unpredictable token bills, and flaky alerts caused by leftover state from earlier clicks.

So I open-sourced CleanRepro (MIT, pure Node.js + Playwright, zero LLM calls).

How it stays zero-flake

  1. Multi-role deterministic crawl: logs into an ephemeral preview/Docker stand as every configured role (Admin, Editor, Viewer, etc.), visits reachable routes, clicks visible buttons/tabs, and submits open dialogs both empty and filled.
  2. Objective failure signals only: 5xx, visible-action 403 Forbidden, 4xx on filled forms (ignoring expected empty-form validation toasts), uncaught JS/console errors, blank screens, leaked NaN/undefined/[object Object], viewport/dialog overflow and occlusion, stuck loaders, and optional role-navigation specs.
  3. Clean-session replay gate: every unique root-cause signature (normalized so /items/42 and /items/99 collapse to one issue) is replayed from scratch in a fresh browser context (plus optional resetCommand to wipe the stand). Anything that does not reproduce cleanly is filtered out and never breaks CI.
  4. Runnable output: posts 1 deduplicated PR comment and writes a standalone Playwright repro/*.spec.ts file for every confirmed bug.

To test it on real production codebases — not just toy fixtures — I ran it against stock Docker containers of three popular open-source B2B SaaS apps spanning Vue 3, Nuxt, and React.

Real Case Study #1: Directus v12.7.0

Setup: stock directus/directus:latest (v12.7.0) with two roles: Administrator and a standard non-admin Editor granted read/create/update on a projects collection and read on directus_files (without directus_folders:read).

Result (4-minute sweep, 2 roles, 0 LLM calls):

  • 121 actions executed across /admin/content/projects, /admin/content, /admin/files, and /admin/users
  • 0 false positives
  • 1 confirmed RBAC UX bug (3 raw occurrences deduplicated into 1 root cause and reproduced on a fresh clean session):

When the Editor opens the visible File Library (/admin/files), Directus unconditionally queries GET /folders?sort=name&filter[type][_eq]=files&limit=-1 and pops up a blocking modal:

[FORBIDDEN] You don't have permission to access collection "directus_folders" or it does not exist. Queried in root.

Directus v12.7.0 403 Forbidden modal caught by CleanRepro

Full report & auto-generated Playwright test (01-forbidden-admin-files.spec.ts):
👉 examples/case-studies/directus-12.7.0

Real Case Study #2: NocoDB v2026.11.0 (Community Edition)

Setup: stock nocodb/nocodb:latest (v2026.11.0, CE) with Super Admin and an invited Viewer role plus a seeded Tasks table.

Result (2-minute sweep, 2 roles, 0 LLM calls):

  • 20 actions executed
  • 0 false positives
  • 2 confirmed 404 API bugs (8 raw occurrences collapsed to 2 root causes, both reproduced cleanly):

In self-hosted Community Edition, table URLs use the /nc/<baseId>/<tableId> prefix. The Nuxt frontend mistakes the literal nc prefix for a workspace ID and fires:

  1. 404 GET /api/v1/auth/user/me?workspace_id=nc (across both Viewer and Super Admin, 5x)
  2. 404 GET /api/v2/meta/workspaces/nc/integrations (on Super Admin, 3x)

Both return:

{"error":"ERR_WORKSPACE_NOT_FOUND","message":"Workspace 'nc' not found"} 

Full report & generated Playwright tests:
👉 examples/case-studies/nocodb-2026.11.0

(Bonus: running against heavy Vue/Nuxt SPAs also caught two edge cases in CleanRepro itself — SPA cold hydration time and scrollable Command Palette listboxes inside modals — both fixed immediately.)

Real Case Study #3: Grafana OSS v13.0.2 (React SPA, 3 Roles)

Setup: stock grafana/grafana-oss:latest (v13.0.2) with Admin, Editor, and Viewer accounts plus a seeded folder and dashboard (Production SLO Overview). In the 5-line config (examples/oss-targets/grafana.config.mjs), we dismiss Grafana's one-time "Grafana Assistant" splash modal during login and filter Grafana's expected K8s-style userstorage.grafana.app / uninitialized ngalert/admin_config 404 lookups and empty-search [role=alert] notices via ignoreResponse and ignoreToastPattern.

Result (4-minute sweep, 3 roles, 0 LLM calls):

  • 149 interactive actions executed across Admin, Editor, and Viewer
  • 0 false positives in the verified report
  • 2 transient / state-dependent findings automatically filtered out on clean-session replay
  • 4 verified bugs reproduced cleanly (collapsed from 17 raw occurrences):
    1. HIGH (js-error) /alerting/new/alerting: opening New alert rule (and clicking Preview alert rule condition) consistently logs Console error: Failed to parse thresholds c: failed to create DAG from queries (8 occurrences).
    2. HIGH (js-error) /a/grafana-lokiexplore-app/explore: opening built-in Drilldown -> Logs on a stock OSS install renders the friendly empty-state page while throwing an uncaught JS exception: Invalid datasource! (pageerror).
    3. MEDIUM (http-4xx) /bookmarks & /dashboard/recently-deleted: first-party routes linked directly from Grafana's own <nav> sidebar return HTTP 404 Not Found from Grafana's Go server on direct navigation or browser refresh (while serving the SPA HTML shell; authenticated curl confirmed /dashboards -> 200 while /bookmarks, /dashboard/recently-deleted, /dashboard/public, /admin/general, /admin/plugins, and /admin/access all return 404).

Full report, clean screenshots & auto-generated Playwright tests:
👉 examples/case-studies/grafana-13.0.2

(Honest engineering note: none of these 3 OSS sweeps uncovered a catastrophic server crash — mature OSS apps already have solid happy-path suites. What they caught were real RBAC UX gaps, broken API query parameters, uncaught empty-state JS exceptions, and HTTP 404 SPA route status codes — plus 6 real edge cases in CleanRepro itself, including hidden 0x0 [role=alert] nodes, headless clipboard permissions, predicate waitForUrl serialization, and multiline stack traces in generated .spec.ts comments, all fixed immediately.)

Try the 25-Second Local Demo

CleanRepro ships with a built-in multi-role SaaS fixture (including a one-shot flaky 500 that you can watch CleanRepro automatically filter out):

git clone https://github.com/danvith/cleanrepro cd cleanrepro npm install && npx playwright install chromium node examples/demo-run.mjs 

What real-world UI or RBAC regressions sneak past your Playwright suite most often? Would love feedback in the comments.