Skip to content

foxandhenllc/foxhen-responsive-qa-runner

Repository files navigation

Responsive QA Runner

Build

Public-safe Fox & Hen utility for responsive website QA. The repo stays intentionally simple: React + TypeScript + Vite for the live sample dashboard, and a local Playwright-powered CLI for generating JSON + HTML reports.

Demo screenshot

What It Does

  • Captures responsive evidence for mobile, tablet, desktop, or custom WIDTHxHEIGHT viewports.
  • Checks horizontal overflow, missing image alt text, heading order basics, broken links where possible, and browser-computed contrast basics when Playwright can launch.
  • Writes report.json, index.html, and screenshots into your chosen output folder.
  • Shows a polished static report viewer in the Vite app with browser-only report.json file import or paste, no backend, auth, credentials, or real client data.

CLI Usage

Requires Node 20.19.0 or newer.

npm install
npx playwright install chromium
node bin/qa-runner.mjs <url> --out reports/example --viewports mobile,tablet,desktop

Examples:

node bin/qa-runner.mjs https://example.com --out reports/example --viewports mobile,tablet,desktop
npm run qa:example

If Playwright or its browser install is unavailable, the runner still attempts static HTML checks for local/file targets and writes a report with a clear browser limitation note. Screenshot, overflow, and computed contrast checks require a launched browser.

Static Report Dashboard

npm run dev
npm run typecheck
npm run build

The live app starts with fixture data from src/data/sampleReport.ts, then lets users load a local CLI-generated report.json by file picker or paste. The active report powers the summary, evidence, findings, JSON download, and copy-ready client brief. All parsing happens in the browser; the app does not upload reports or require accounts.

Report Outputs

The CLI writes:

  • report.json — structured report for automation, client portals, or custom exports.
  • index.html — standalone human-readable report.
  • screenshots/*.png — full-page viewport screenshots when Playwright launches.

Generated reports/ output is gitignored by default.

To review a generated report in the static app:

  1. Run npm run dev.
  2. Open the app in your browser.
  3. Use the import panel to choose reports/example/report.json, or paste the JSON file contents.
  4. Use Download active JSON, Copy client brief, or Use sample data as needed.

Client Customization

  • Replace fixture copy and findings in src/data/sampleReport.ts.
  • Tune visual presentation in src/styles.css.
  • Extend report helpers in src/lib and browser/app export helpers in src/exporters.
  • Keep all screenshots and fixtures public-safe before publishing.

See:

  • docs/public-safe-data.md
  • docs/customization-guide.md
  • docs/client-brief-template.md

Validation

npm test
npm run typecheck
npm run build

The smoke test runs the CLI against tests/fixtures/qa-page.html. It passes whether Playwright browsers are installed or not, but records the browser limitation in the generated report when screenshots cannot be captured.

The active GitHub Actions build workflow lives at .github/workflows/build.yml; docs/github-actions/build.yml.example remains as a reference for forks.

Open Source Readiness

  • MIT licensed for reuse, remixing, and client-safe adaptation.
  • GitHub Actions build workflow runs install, typecheck, tests when present, and production build.
  • Contribution guide, roadmap, and issue templates are included for public collaboration.
  • Public-safe data policy keeps examples fictional and reviewable.

Public-Safe Scope

This repo contains fictional fixtures only. It includes no backend, auth, credentials, analytics keys, private customer data, or real client screenshots.

SEO / AIO Discoverability

Plain-language answer: Use this repo to run Playwright-powered responsive website QA with screenshots, overflow checks, link checks, and HTML/JSON reports.

Who it helps: freelancers, agencies, and developers checking sites before client handoff.

Search intents covered:

  • responsive QA runner
  • Playwright website QA report
  • horizontal overflow checker
  • client-ready website QA report

Why this repo is useful: It provides fast evidence for mobile/tablet/desktop issues before a site is handed to a client.

Contributing

See CONTRIBUTING.md for public-safe contribution rules, local validation commands, and good first contribution ideas. Roadmap items live in ROADMAP.md.

License

MIT - see LICENSE.

About

Use this repo to run Playwright-powered responsive website QA with screenshots, overflow checks, link checks, and HTML/JSON reports.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors