test: reusable browser gate for legal deep links

↗ view on GitHub · Eli Ziff · 2026-07-27 · 557f6088

Playwright/Chromium suite that opens real pinpoint URLs against live
court sites and asserts what server probes cannot see: anchor exists
and the viewport landed on it, the page still scrolls afterwards (the
site_preference=mobile regression detector), and expected text renders.
Fresh context per case so Decisia's SITE_PREFERENCE cookie cannot leak
between cases. Includes a negative control (the bare Decisia shell URL
must fail) and a no-anchor bench judgment documenting graceful
degradation. 6/6 on SCC/ONCA/NSCA samples, screenshots archived under
benchmarks/deeplink_gate/. Accepts the SourceDoc gate-urls.json shape.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUsMXzBsEJ27DjJVPSfW5o
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents 09825524
Stats 2 files changed , +162
Part of Internal cleanup, dead-code removal, and the canonical route builder

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-557f6088.md from inside the repo you want the change in.

⬇ Download capture-commit-557f6088.md