bigbluebutton-Github/bigbluebutton-tests/playwright/playwright.config.js

59 lines
1.2 KiB
JavaScript
Raw Normal View History

require('dotenv').config();
const config = {
2021-12-01 01:13:43 +08:00
workers: 1,
2021-12-23 03:06:42 +08:00
timeout: 3 * 60 * 1000,
2022-03-01 04:16:01 +08:00
reporter: [['list']],
2021-11-23 01:06:59 +08:00
use: {
headless: true,
},
2021-12-01 01:13:43 +08:00
projects: [
{
name: 'Chromium',
use: {
browserName: 'chromium',
launchOptions: {
args: [
'--no-sandbox',
'--use-fake-ui-for-media-stream',
'--use-fake-device-for-media-stream',
]
},
},
},
{
name: 'Firefox',
use: {
browserName: 'firefox',
launchOptions: {
firefoxUserPrefs: {
"media.navigator.streams.fake": true,
"media.navigator.permission.disabled": true,
}
},
},
},
{
name: 'WebKit',
use: {
browserName: 'webkit',
launchOptions: {
args: [
'--no-sandbox',
'--use-fake-ui-for-media-stream',
'--use-fake-device-for-media-stream',
]
},
},
},
2021-12-01 01:13:43 +08:00
],
};
2021-11-23 01:06:59 +08:00
2022-03-01 04:16:01 +08:00
if (process.env.DEBUG_MODE === 'true') {
config.reporter.push(['html', { open: 'never' }]);
config.use.screenshot = 'only-on-failure';
config.use.trace = 'retain-on-failure';
}
2021-11-03 06:50:20 +08:00
module.exports = config;