123456789101112131415161718192021222324252627282930313233343536373839 |
- // 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 });
|