# Rio Browser QA (New in v0.3)

> Test real user journeys across viewports and themes in isolated containers.

Canonical HTML: https://getrio.dev/browser-qa

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

## Four workflow commands

1. **Validate spec**: `rio qa validate`
   Check `.rio/qa.yaml`, fixtures, seed definitions, and journey contracts.
2. **Build synthetic seeds**: `rio qa seed build`
   Generate deterministic test data with no production PII.
3. **Author journeys**: `rio qa init`
   Propose or scaffold initial user journeys from `REVIEW.md`.
4. **Run full matrix**: `rio qa --full`
   Execute mobile + desktop and light + dark combinations in isolated containers.

## Terminal views

1. **Journey authoring & plan (`rio qa init`)**: Define user flows, assertions, and viewports in `.rio/qa.yaml`.
2. **Live viewport x theme matrix (`rio qa --full`)**: Watch every journey run live across mobile/desktop and light/dark.
3. **Failing cell & trace detail**: Drill into console errors, network traces, and PII-masked screenshots.
4. **Accessibility & UX findings**: Actionable accessibility and UX recommendations tied to exact UI states.

## Prerequisites

Requires a Linux Docker host with firewall control, the paired QA container image, model authentication, and `.rio/qa.yaml` plus `REVIEW.md` in your repository.

Build the paired Browser QA image:

```sh
docker build -f worker/Dockerfile.qa -t rio-qa:0.1.0 .
```
