test: add frontend visual regression coverage
ci / gitleaks (push) Successful in 9s
ci / docker (push) Successful in 4m4s

This commit is contained in:
2026-09-19 13:21:57 +08:00
parent cec0a4418c
commit 9c0dc3a31f
5 changed files with 55 additions and 2 deletions
+9 -1
View File
@@ -25,7 +25,15 @@ export default defineConfig({
fullyParallel: false,
workers: 1,
timeout: 45_000,
expect: { timeout: 8_000 },
expect: {
timeout: 8_000,
toHaveScreenshot: {
animations: 'disabled',
caret: 'hide',
maxDiffPixelRatio: 0.001,
},
},
snapshotPathTemplate: '{testDir}/{testFilePath}-snapshots/{arg}-{projectName}{ext}',
outputDir: path.join(runtimeRoot, 'test-results'),
reporter: [['line'], ['html', { outputFolder: path.join(runtimeRoot, 'report'), open: 'never' }]],
globalSetup: './e2e/global-setup.ts',