forked from hotwired/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
43 lines (41 loc) · 869 Bytes
/
playwright.config.js
File metadata and controls
43 lines (41 loc) · 869 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
41
42
43
import { devices } from "@playwright/test"
const config = {
projects: [
{
name: "chrome",
use: {
...devices["Desktop Chrome"],
contextOptions: {
timeout: 10000
},
hasTouch: true
}
},
{
name: "firefox",
use: {
...devices["Desktop Firefox"],
contextOptions: {
timeout: 10000
},
hasTouch: true
}
}
],
timeout: 10000,
browserStartTimeout: 10000,
retries: 2,
testDir: "./src/tests/",
testMatch: /(functional|integration)\/.*_tests\.js/,
webServer: {
command: "yarn start",
url: "http://localhost:9000/src/tests/fixtures/test.js",
timeout: 10000,
// eslint-disable-next-line no-undef
reuseExistingServer: !process.env.CI
},
use: {
baseURL: "http://localhost:9000/"
}
}
export default config