Playwright Tester — other project

Playwright Tester is a deliberately tiny developer tool built to solve one specific, expensive problem: SPAs that pass the build, pass lint, and return HTTP 200 — but render a blank white screen in production because of a runtime JavaScript error during hydration. It's a single ~77-line Node.js + Playwright script that drives headless Chromium across whatever routes you give it, waits for the app to hydrate, and verifies three things at once — a 200 status, real rendered content, and no runtime-error strings in the page — while capturing console errors for quick debugging. It exits non-zero the instant any route fails, so it drops straight into a CI deploy gate. The whole thing has exactly one dependency and no config; it is reused across a 30+ project workspace as the 'did it actually render?' check that the usual health probes are blind to. It is an internal tool, not a published package.

Tech stack

  • Node.js
  • Playwright
  • JavaScript

Key features

  • Single-file (~77 LOC) CLI, one dependency
  • Real-browser render check (headless Chromium)
  • Three-signal pass/fail (200 + content + no error strings)
  • Console-error capture
  • Variadic route argument
  • Deterministic exit codes for CI gates
  • Catches white-screen / hydration regressions

Category: other · Status: completed · Started: 2026-01 · Through: Present · Client: Internal Project

Links: https://github.com/aoneahsan

Tags: testing · playwright · smoke-test · ci · developer-tools · nodejs


Contact

Website: https://zaions.com
Email: aoneahsan@gmail.com
GitHub: github.com/aoneahsan
LinkedIn: linkedin.com/in/aoneahsan
RSS Feed: https://zaions.com/feed.xml
Sitemap: https://zaions.com/sitemap.xml
LLM Index: https://zaions.com/llms.txt