-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
32 lines (31 loc) · 884 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
32 lines (31 loc) · 884 Bytes
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";
export default defineConfig({
testDir: "./tests",
// Output all artifacts to tests/load/results
outputDir: "./tests/load/results",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 0,
// Browser tests are heavier - limit parallelism
workers: process.env.CI ? 1 : Math.min(Number(process.env.WORKERS) || 4, 8),
reporter: "list",
use: {
// Use the Next.js app URL
baseURL: process.env.BASE_URL || "http://localhost:3005",
trace: "retain-on-failure",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
// 2 minutes per test - PoW can take time under load
timeout: 120000,
// Action timeouts for individual operations
expect: {
timeout: 30000,
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});