You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wdio.firefox.conf.ts 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // wdio.firefox.conf.ts
  2. // extends the main configuration file changing first participant to be Firefox
  3. import { merge } from 'lodash-es';
  4. import process from 'node:process';
  5. // @ts-ignore
  6. import { config as defaultConfig } from './wdio.conf.ts';
  7. const ffArgs = [];
  8. const ffPreferences = {
  9. 'intl.accept_languages': 'en-US',
  10. 'media.navigator.permission.disabled': true,
  11. 'media.navigator.streams.fake': true,
  12. 'media.autoplay.default': 0
  13. };
  14. if (process.env.HEADLESS === 'true') {
  15. ffArgs.push('--headless');
  16. }
  17. export const config = merge(defaultConfig, {
  18. exclude: [
  19. 'specs/2way/iFrameParticipantsPresence.spec.ts', // FF does not support uploading files (uploadFile)
  20. 'specs/3way/activeSpeaker.spec.ts' // FF does not support setting a file as mic input
  21. ],
  22. capabilities: {
  23. participant1: {
  24. capabilities: {
  25. browserName: 'firefox',
  26. 'moz:firefoxOptions': {
  27. args: ffArgs,
  28. prefs: ffPreferences
  29. },
  30. acceptInsecureCerts: process.env.ALLOW_INSECURE_CERTS === 'true'
  31. }
  32. }
  33. }
  34. }, { clone: false });