refactor & improvements

This commit is contained in:
2026-03-29 22:35:57 +03:00
parent cdaf91927b
commit f0a1835fa2
63 changed files with 4803 additions and 7387 deletions

View File

@@ -0,0 +1,21 @@
import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './tests/visual',
outputDir: './tests/visual/test-results',
use: {
baseURL: 'http://localhost:5173',
viewport: { width: 1400, height: 900 },
},
webServer: {
command: 'bun run dev',
port: 5173,
reuseExistingServer: true,
timeout: 30000,
},
expect: {
toHaveScreenshot: {
maxDiffPixelRatio: 0.01,
},
},
})