-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathplaywright.config.js
More file actions
32 lines (31 loc) · 1.16 KB
/
Copy pathplaywright.config.js
File metadata and controls
32 lines (31 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { defineConfig, devices } from '@playwright/test';
// Drives the real client (resources/js/truss.js) in a headless browser against
// a mocked /api/schema, verifying the browser-only concerns Vitest can't:
// actual Mermaid rendering, filter/focus/label interaction, zoom, connection
// switching, and the fallback / large-schema banners.
export default defineConfig({
testDir: './tests/e2e',
timeout: 30_000,
fullyParallel: true,
use: {
baseURL: 'http://localhost:5178',
},
webServer: {
command: 'node tests/e2e/serve.mjs',
url: 'http://localhost:5178/tests/e2e/harness.html',
reuseExistingServer: true,
timeout: 20_000,
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
// Firefox runs one spec, not the suite. Issue #59 was a Firefox-only
// clipping bug that no other engine reproduced, so label geometry earns a
// second engine; the interaction specs would only be re-verifying logic
// that is not engine-specific, at roughly double the frontend CI time.
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
testMatch: /label-clipping\.spec\.js/,
},
],
});