Visual Test

Run or add Playwright visual specs and know when a layout or CSS change needs npm run test:visual. Use after first-paint, panel-layout, or PurgeCSS safelist changes, or when adding a Playwright case.

liberatedpixelcup a8fe3e4 1.1 KB Updated

File contents

Visual tests

Run npm run test:visual after a change that affects first paint, panel layout, or a class in vite/purgecss-critical-safelist.ts.

Add cases under tests/visual/. Reuse waits in home-helpers.ts. Wait for catalog readiness via __LPC_waitCatalogAllReady (installed in sources/install-item-metadata.ts). Do not import visual specs from tests/tests.js. They are not Codecov-instrumented.

Argos upload needs ARGOS_TOKEN. Isolated run: run-one-spec. Walkthrough: Visual regression tests. CLS measurement is cls / CLS.md; Argos does not replace profile:cls.

liberatedpixelcup/universal-lpc-spritesheet-character-generator/tree/main/.agents/skills/visual-test commit a8fe3e4c7a

Frequently asked questions

npx skillmds@latest add liberatedpixelcup/visual-test