-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathplaywright.memory.config.ts
More file actions
49 lines (47 loc) · 1.23 KB
/
Copy pathplaywright.memory.config.ts
File metadata and controls
49 lines (47 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
48
49
import { defineConfig, devices } from "@playwright/test";
const RENDER_MEMORY_PORT = 1523;
export default defineConfig({
testDir: "./e2e/perf",
testMatch: ["**/render-memory.spec.ts"],
outputDir: "./test-results/render-memory/output",
timeout: 150_000,
fullyParallel: false,
workers: 1,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI
? [
["list"],
[
"html",
{ outputFolder: "test-results/render-memory/report", open: "never" },
],
]
: [["list"]],
use: {
baseURL: `http://localhost:${RENDER_MEMORY_PORT}`,
colorScheme: "dark",
locale: "en-US",
timezoneId: "UTC",
contextOptions: { reducedMotion: "reduce" },
screenshot: "only-on-failure",
trace: "on-first-retry",
},
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1280, height: 800 },
deviceScaleFactor: 1,
},
},
],
webServer: {
command: `vite dev --mode e2e --port ${RENDER_MEMORY_PORT} --strictPort`,
url: `http://localhost:${RENDER_MEMORY_PORT}`,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
env: { VITE_E2E_MOCK: "true" },
},
});