Verifying a UI Change
Typecheck cannot see layout, so the question of what proves a visual change is real comes up on every one. The answer here is a browser an agent drives, once, after the edits, and only for a claim a test cannot reach — never inside the edit loop.
Settled — do not re-propose
- A screenshot suite against approved baselines (
@nuxt/test-utils' end-to-end mode,createPage, a Playwright-driven browser). Every run pays a production build of the whole app, many minutes before the first capture, and the captures find nothing the user's own look does not. The Genshin world package's visual suite is not this: it renders its own screens on plain Vite in seconds, with no app build (genshin-parityskill). - "Never a browser the agent drives over the app." Rejected by one run that drove the dev server in Chrome and found three defects the suites and lint had passed: a drag rule that made the whole calendar inert, a second visit to the dungeons that threw, and a WebSocket upgrade answered twice. A claim whose evidence is hit-testing, drag and drop, a remount, or the real browser's lifecycle is checked in one, as
references/driven-browser.mdsets out. - Reading the hydration check as this suite. The Deploy workflow loads every sitemap page in a browser after each deploy, but it pays no build (the deploy built) and captures nothing: it fails only on a hydration message Vue logs (
openspec/specs/architecture/hydration/design.md). - A component gallery (Storybook, Histoire) — the same cost, plus a second app to keep working with Nuxt and stories that rot.
Genshin parity
A Genshin screen is compared with the game by pnpm -C scripts genshin:parity compare, which drives the machine's own Edge against the world package's parity page on plain Vite, never the app. It costs seconds, not a Nuxt build, and the user asked for it so the agent checks its own screens. The genshin-parity skill owns it.
A browser never runs inside the edit loop
No headless Chrome, no CDP, no screenshot after each edit, no poll loop for async components. A dev server, a client-bundle warmup and a seeded session cost more wall clock than the edit, and inside the loop that wait is paid on every iteration. So while the change is being made: make it, run the check suite (the package-scripts skill, references/check-suite.md), and move on.
What replaces it
- For a styling change, generate the CSS and read it — a form that generates nothing is the finding (
references/css-generation.md). - A component test, when it is cheap. If the behaviour mounts under the repo's default Vitest setup and the assertions are about rendered structure or state a user depends on, write one —
testingowns the conventions. - Otherwise nothing, and say so. A component test that only exists after mocking a large surface — a store graph, the tRPC client, a third-party component's internals, a browser API per assertion — is not worth its weight: it pins the mocks rather than the component, and it is the maintenance the next change pays. Not adding the test is the correct outcome there and needs no apology.
- A driven browser, once, after the edits, when the claim is one no test reaches: hit-testing, drag and drop, a second visit to a page, a Phaser or three.js lifecycle (
references/driven-browser.md). - A layout claim no test and no driven browser reaches stays unverified, and the report says so. Nothing is handed to the user to look at: nobody checks a layout by hand, so a look you did not take is never claimed.
Never report a visual change as verified on the strength of typecheck, lint or a passing suite. Say which of the steps above happened.
Launching the dev server (for the user, not for a driver)
pnpm dev --port 3001 from apps/web, since port 3000 is the user's; the lock, the bind address and the temp-script hazard are in references/dev-server.md.
Reference pages
references/driven-browser.md— when a claim needs a browser: the server, the script, the throwaway page and what to leave behind.references/css-generation.md— when a styling question can be settled by the CSS UnoCSS generates.references/dev-server.md— when starting a dev server for the user, or reading what Vite serves.