Skip to main content
rio v0.3
BROWSER QA · OPTIONAL DOCKER RUNNER NEW IN v0.3

Test real user journeys across viewports and themes.

Run isolated browser journeys across mobile and desktop viewports in light and dark color schemes, producing PII-masked screenshots, DOM snapshots, traces, accessibility checks, and UX recommendations.

Four commands from spec to full viewport × theme matrix.

01

Validate spec

Check .rio/qa.yaml, fixtures, seed definitions, and journey contracts.

rio qa validate
02

Build synthetic seeds

Generate deterministic test data with no production PII.

rio qa seed build
03

Author journeys

Propose or scaffold initial user journeys from REVIEW.md.

rio qa init
04

Run full matrix

Execute mobile + desktop × light + dark in isolated containers.

rio qa --full

REAL TERMINAL CAPTURES

Inspect journeys, failing cells, and UX recommendations.

Evidence & UX Docs →
01 · Journey authoring & plan rio qa init
Rio Browser QA journey authoring and plan TUI view showing user flows and assertions.
Define user flows, assertions, and viewports in .rio/qa.yaml.
02 · Live viewport × theme matrix rio qa --full
Rio Browser QA live viewport and theme matrix across mobile, desktop, light, and dark modes.
Watch every journey run live across mobile/desktop and light/dark.
03 · Failing cell & trace detail DOM + trace + mask
Rio Browser QA failing cell detail showing console errors, DOM trace, and PII-masked screenshot context.
Drill into console errors, network traces, and PII-masked screenshots.
04 · Accessibility & UX findings a11y + UX
Rio Browser QA accessibility and UX findings screen with actionable recommendations.
Actionable accessibility and UX recommendations tied to exact states.

VIEWPORT × THEME REGRESSION TESTING

Catch dark mode contrast bugs and mobile overflow in one run.

Define your app boot command, synthetic data seeds, privacy masks, and journey specs in .rio/qa.yaml. Rio executes every journey across four cells (desktop light, desktop dark, mobile light, mobile dark) and verifies both functional assertions and visual/a11y regressions before merge.

.rio/qa.yaml (example contract)
version: 1
app:
  start: npm run preview -- --host 0.0.0.0 --port 4173
  url: http://127.0.0.1:4173
matrix:
  viewports: [desktop, mobile]
  color_schemes: [light, dark]
privacy:
  mask_selectors: ["[data-pii]", "input[type=email]"]

PREREQUISITES

Isolated by design on a Linux Docker host.

Requires a Linux Docker host with firewall control, the paired QA container image, model authentication, and .rio/qa.yaml + REVIEW.md in your repository. Built-in QA budgets cap fast review at 500,000 tokens and deep review at 1,000,000 tokens (screenshots consume vision tokens).

# Build the paired Browser QA image
$ docker build -f worker/Dockerfile.qa -t rio-qa:0.1.0 .

BROWSER QA FAQ

Questions about viewport and theme matrix testing.

Why test a viewport and light/dark theme matrix instead of desktop light mode only?

Layout overflows, contrast failures, clipped navigation drawers, and broken focus rings frequently appear only on narrow mobile screens or in dark mode. Running every journey across mobile and desktop in both light and dark color schemes catches visual regressions automatically.

How does Rio Browser QA handle sensitive data in screenshots and seeds?

rio qa seed build generates deterministic synthetic fixtures so tests never rely on production databases. Masking selectors in .rio/qa.yaml redact sensitive DOM nodes before screenshots are captured or passed to vision models.

What evidence is captured when a matrix cell fails?

Each failing viewport and theme cell records masked screenshots, DOM snapshots, browser console errors, network traces, accessibility violations, and UX recommendations tied to the exact journey step.

Does Browser QA require a Linux Docker host?

Yes. Browser QA runs inside an isolated container built from worker/Dockerfile.qa on a Linux Docker host with firewall control, keeping untrusted app builds separated from your host environment.