-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.scalability.config.ts
More file actions
37 lines (32 loc) · 1.32 KB
/
Copy pathplaywright.scalability.config.ts
File metadata and controls
37 lines (32 loc) · 1.32 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
33
34
35
36
37
/**
* Playwright configuration for scalability tests.
*
* Differences from playwright.config.ts:
* - NO webServer block — uses the already-running Docker container
* (docker-compose up -d must be running before executing these tests)
* - testMatch limited to scalability-many-clients.spec.ts
* - testIgnore fully removed (not relevant here)
* - 1 worker — the spec opens many frames in a single browser page;
* additional workers would just multiply Docker load
* - Larger timeouts to accommodate 40–100 iframe connections
*/
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
testMatch: ["**/scalability-many-clients.spec.ts"],
// No testIgnore — we're only running the one scalability spec
timeout: 120_000, // 2 min per test (60 s WS-connect + headroom)
workers: 1,
fullyParallel: false,
retries: 0,
reporter: [["list"]],
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "off",
},
// ── NO webServer block ─────────────────────────────────────────────
// These tests run against the live Docker stack.
// Start it with: docker-compose down && docker-compose up -d --build
});