forked from dmotz/trystero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.js
41 lines (40 loc) · 905 Bytes
/
playwright.config.js
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
import {devices} from '@playwright/test'
export default {
workers: 1,
timeout: 20000,
use: {
ignoreHTTPSErrors: true,
headless: true,
launchOptions: {
args: [
'--use-fake-ui-for-media-stream',
'--use-fake-device-for-media-stream',
'--disable-setuid-sandbox',
'--no-sandbox'
],
firefoxUserPrefs: {
'media.navigator.permission.disabled': true,
'media.navigator.streams.fake': true
}
}
},
projects: [
{
name: 'chromium',
use: {...devices['Desktop Chrome']}
},
{
name: 'firefox',
use: {...devices['Desktop Firefox']}
},
{
name: 'webkit',
use: {...devices['Desktop Safari']}
}
],
webServer: {
command: 'http-server -S -C ./test/certs/cert.pem -K ./test/certs/key.pem',
url: 'https://localhost:8080/test',
ignoreHTTPSErrors: true
}
}