test(visual): regression baselines for stable list/landing pages
New `visual` project covers six low-volatility screens — portal login, dashboard, and the four core lists (clients/yachts/berths/invoices) — with full-page screenshots that diff to a 2% pixel-ratio tolerance. Animations and the cursor caret are disabled inline so transient rendering doesn't trigger flaky diffs. Detail screens (yacht detail, EOI dialog, invoice form steps) are intentionally deferred until we have stable per-id fixtures so snapshots don't drift with seed data. Regenerate with: pnpm exec playwright test --project=visual --update-snapshots Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,6 +63,18 @@ export default defineConfig({
|
||||
viewport: { width: 1440, height: 900 },
|
||||
},
|
||||
},
|
||||
{
|
||||
// Visual regression baselines. Regenerate with --update-snapshots after
|
||||
// intentional UI changes; otherwise pnpm exec playwright test --project=visual
|
||||
// diffs against the committed PNGs.
|
||||
name: 'visual',
|
||||
testMatch: /visual\/.*\.spec\.ts/,
|
||||
dependencies: ['setup'],
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
viewport: { width: 1440, height: 900 },
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
// Don't start the dev server — we expect it to already be running
|
||||
|
||||
Reference in New Issue
Block a user