Skip to content

Commit e6e6e7a

Browse files
ochafikclaude
andcommitted
Enable parallel E2E tests with timeouts and canvas masking
- Enable fullyParallel with 4 workers locally (2 in CI) - Add 30s timeout per test - Mask threejs canvas for stable screenshots - Update snapshots to reflect default values in input fields 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d3ff6da commit e6e6e7a

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

playwright.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { defineConfig, devices } from "@playwright/test";
22

33
export default defineConfig({
44
testDir: "./tests/e2e",
5-
fullyParallel: false, // Run tests sequentially to share server
5+
fullyParallel: true, // Tests are independent, can run in parallel
66
forbidOnly: !!process.env.CI,
77
retries: process.env.CI ? 2 : 0,
8-
workers: 1, // Single worker since we share the server
9-
reporter: "html",
8+
workers: process.env.CI ? 2 : 4, // More workers locally, fewer in CI
9+
timeout: 30000, // 30s per test
10+
reporter: process.env.CI ? "list" : "html",
1011
// Use platform-agnostic snapshot names (no -darwin/-linux suffix)
1112
snapshotPathTemplate:
1213
"{testDir}/{testFileDir}/{testFileName}-snapshots/{arg}{ext}",

tests/e2e/servers.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const DYNAMIC_MASKS: Record<string, string[]> = {
1717
"#info-uptime", // System uptime
1818
],
1919
"wiki-explorer": ["#graph"], // Force-directed graph (dynamic layout)
20+
threejs: ["canvas"], // 3D render canvas (dynamic animation)
2021
};
2122

2223
// Server configurations
48 Bytes
Loading
50 Bytes
Loading
12.3 KB
Loading

0 commit comments

Comments
 (0)