@@ -6,7 +6,6 @@ const dotenv = require('dotenv');
6
6
dotenv . config ( ) ;
7
7
dotenv . config ( { path : '.env.default' } ) ;
8
8
9
-
10
9
// eslint-disable-next-line prefer-destructuring
11
10
const argv = require ( 'yargs' ) . argv ;
12
11
@@ -16,6 +15,7 @@ const {inject} = require('./scripts/tests/openh264');
16
15
const beforeSuite = require ( './scripts/tests/beforeSuite' ) ;
17
16
18
17
const port = process . env . PORT || 4567 ;
18
+ const isSauceEnabled = ( process . env . SAUCE === 'true' ) ;
19
19
let baseUrl = process . env . JOURNEY_TEST_BASE_URL ;
20
20
21
21
if ( ! baseUrl ) {
@@ -35,7 +35,7 @@ const screenResolution = platform.toLowerCase().includes('os x') || platform ===
35
35
36
36
const chromeCapabilities = {
37
37
browserName : 'chrome' ,
38
- chromeOptions : {
38
+ 'goog: chromeOptions' : {
39
39
args : [
40
40
'--use-fake-device-for-media-stream' ,
41
41
'--use-fake-ui-for-media-stream' ,
@@ -47,10 +47,20 @@ const chromeCapabilities = {
47
47
}
48
48
} ;
49
49
const firefoxCapabilities = {
50
- browserName : 'firefox'
50
+ browserName : 'firefox' ,
51
+ 'moz:firefoxOptions' : {
52
+ prefs : {
53
+ 'media.navigator.permission.disabled' : true ,
54
+ 'media.peerconnection.video.h264_enabled' : true ,
55
+ 'media.navigator.streams.fake' : true ,
56
+ 'media.getusermedia.screensharing.enabled' : true ,
57
+ 'media.getusermedia.screensharing.allowed_domains' : 'localhost, 127.0.0.1' ,
58
+ 'dom.webnotifications.enabled' : false ,
59
+ 'media.gmp-manager.updateEnabled' : true
60
+ }
61
+ }
51
62
} ;
52
63
let mochaTimeout = 60000 ;
53
- const isSauceEnabled = ( process . env . SAUCE === 'true' ) ;
54
64
55
65
if ( process . env . DEBUG_JOURNEYS ) {
56
66
mochaTimeout = 99999999 ;
@@ -305,6 +315,7 @@ if (isSauceEnabled) {
305
315
commandTimeout : 600 ,
306
316
maxDuration : 3600 ,
307
317
seleniumVersion : '3.4.0' ,
318
+ extendedDebugging : true ,
308
319
screenResolution,
309
320
platform,
310
321
version
@@ -317,6 +328,19 @@ if (isSauceEnabled) {
317
328
commandTimeout : 600 ,
318
329
maxDuration : 3600 ,
319
330
seleniumVersion : '3.4.0' ,
331
+ extendedDebugging : true ,
332
+ // extended debugging
333
+ 'moz:firefoxOptions' : {
334
+ args : [
335
+ '-start-debugger-server' ,
336
+ '9222'
337
+ ] ,
338
+ prefs : {
339
+ 'devtools.chrome.enabled' : true ,
340
+ 'devtools.debugger.prompt-connection' : false ,
341
+ 'devtools.debugger.remote-enabled' : true
342
+ }
343
+ } ,
320
344
screenResolution,
321
345
platform,
322
346
version
0 commit comments