Seeded claude design
Some checks failed
ci / check (push) Has been cancelled
ci / release (push) Has been cancelled

This commit is contained in:
2026-05-23 16:34:14 +02:00
commit 9419f166ce
32 changed files with 2553 additions and 0 deletions

30
playwright.config.mjs Normal file
View File

@@ -0,0 +1,30 @@
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/visual",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 0,
reporter: [["html", { open: "never" }], ["list"]],
use: {
headless: true,
viewport: { width: 1280, height: 800 },
deviceScaleFactor: 2,
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
],
webServer: {
command: "npx --yes serve -l 4321 examples/whynot-control",
url: "http://localhost:4321",
reuseExistingServer: !process.env.CI,
stdout: "ignore",
stderr: "pipe",
},
expect: {
toHaveScreenshot: {
// Reasonable tolerance for font hinting / sub-pixel jitter.
maxDiffPixelRatio: 0.005,
},
},
});