-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
40 lines (39 loc) · 913 Bytes
/
playwright.config.ts
File metadata and controls
40 lines (39 loc) · 913 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
33
34
35
36
37
38
39
40
import { PlaywrightTestConfig } from "@playwright/test"
export default {
testDir: "integration-tests/",
testMatch: "**/*.spec.ts",
use: {
headless: true, // Always run headless to avoid disrupting work
screenshot: "on",
baseURL: "http://localhost:1234"
},
projects: [
{
name: "chromium",
use: {
browserName: "chromium",
viewport: { width: 900, height: 800 }
}
},
{
name: "firefox",
use: {
browserName: "firefox",
viewport: { width: 900, height: 800 }
}
},
{
name: "webkit",
use: {
browserName: "webkit",
viewport: { width: 900, height: 800 }
}
}
],
webServer: {
command: process.env.CI ? "npm run serve-examples:ci" : "npm run serve-examples",
port: 1234,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI
}
} as PlaywrightTestConfig