51 lines
1.0 KiB
JavaScript
51 lines
1.0 KiB
JavaScript
|
const chromiumConfig = {
|
||
|
name: 'Chromium',
|
||
|
use: {
|
||
|
browserName: 'chromium',
|
||
|
launchOptions: {
|
||
|
args: [
|
||
|
'--no-sandbox',
|
||
|
'--ignore-certificate-errors',
|
||
|
'--use-fake-ui-for-media-stream',
|
||
|
'--use-fake-device-for-media-stream',
|
||
|
'--allow-file-access-from-files',
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
const firefoxConfig = {
|
||
|
name: 'Firefox',
|
||
|
use: {
|
||
|
browserName: 'firefox',
|
||
|
launchOptions: {
|
||
|
args: [
|
||
|
'--quiet',
|
||
|
'--use-test-media-devices',
|
||
|
],
|
||
|
firefoxUserPrefs: {
|
||
|
"media.navigator.streams.fake": true,
|
||
|
"media.navigator.permission.disabled": true,
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
const webkitConfig = {
|
||
|
name: 'WebKit',
|
||
|
use: {
|
||
|
browserName: 'webkit',
|
||
|
launchOptions: {
|
||
|
args: [
|
||
|
'--no-sandbox',
|
||
|
'--use-fake-ui-for-media-stream',
|
||
|
'--use-fake-device-for-media-stream',
|
||
|
]
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
exports.chromiumConfig = chromiumConfig;
|
||
|
exports.firefoxConfig = firefoxConfig;
|
||
|
exports.webkitConfig = webkitConfig;
|