mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
// wdio.firefox.conf.ts
|
|
// extends the main configuration file changing first participant to be Firefox
|
|
import { merge } from 'lodash-es';
|
|
import process from 'node:process';
|
|
|
|
// @ts-ignore
|
|
import { config as defaultConfig } from './wdio.conf.ts';
|
|
|
|
const ffArgs = [];
|
|
|
|
const ffPreferences = {
|
|
'intl.accept_languages': 'en-US',
|
|
'media.navigator.permission.disabled': true,
|
|
'media.navigator.streams.fake': true,
|
|
'media.autoplay.default': 0
|
|
};
|
|
|
|
if (process.env.HEADLESS === 'true') {
|
|
ffArgs.push('--headless');
|
|
}
|
|
|
|
export const config = merge(defaultConfig, {
|
|
exclude: [
|
|
'specs/2way/iFrameParticipantsPresence.spec.ts', // FF does not support uploading files (uploadFile)
|
|
'specs/3way/activeSpeaker.spec.ts' // FF does not support setting a file as mic input
|
|
],
|
|
capabilities: {
|
|
participant1: {
|
|
capabilities: {
|
|
browserName: 'firefox',
|
|
'moz:firefoxOptions': {
|
|
args: ffArgs,
|
|
prefs: ffPreferences
|
|
},
|
|
acceptInsecureCerts: process.env.ALLOW_INSECURE_CERTS === 'true'
|
|
}
|
|
}
|
|
}
|
|
}, { clone: false });
|