You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/compass-e2e-tests/helpers/chrome-startup-flags.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
// Copied from https://github.com/webdriverio/webdriverio/blob/1825c633aead82bc650dff1f403ac30cff7c7cb3/packages/devtools/src/constants.ts
2
2
// These are the default flags that webdriverio uses to start Chrome driver.
3
+
// NOTE: this has since been removed along with the devtools automation protocol https://github.com/webdriverio/webdriverio/commit/28e64e439ffc36a95f24aeda9f1d21111429dfa3#diff-6ea151d6c0687197931735239f397b7f5f0140a588c5b2b82ff584bbe73be069
logLevel: 'warn'asconst,// info is super verbose right now
550
+
logLevel: 'trace'asconst,
551
551
outputDir: webdriverLogPath,
552
552
};
553
553
@@ -601,7 +601,9 @@ async function startCompassElectron(
601
601
// See https://www.electronjs.org/docs/latest/api/command-line-switches#--enable-loggingfile
602
602
'--enable-logging=file',
603
603
// See https://www.electronjs.org/docs/latest/api/command-line-switches#--log-filepath
604
-
`--log-file=${electronLogFile}`
604
+
`--log-file=${electronLogFile}`,
605
+
// See https://chromium.googlesource.com/chromium/src/+/master/docs/chrome_os_logging.md
606
+
'--log-level=0'
605
607
);
606
608
607
609
if(opts.extraSpawnArgs){
@@ -643,9 +645,13 @@ async function startCompassElectron(
643
645
},
644
646
// from https://github.com/webdriverio-community/wdio-electron-service/blob/32457f60382cb4970c37c7f0a19f2907aaa32443/packages/wdio-electron-service/src/launcher.ts#L102
645
647
'wdio:enforceWebDriverClassic': true,
646
-
},
647
-
'wdio:chromedriverOptions': {
648
-
// TODO: enable logging so we don't have to debug things blindly
648
+
'wdio:chromedriverOptions': {
649
+
// enable logging so we don't have to debug things blindly
650
+
// This goes in .log/webdriver/wdio-chromedriver-*.log. It is the
651
+
// chromedriver log and since this is verbose it also contains the
652
+
// stdout of the electron main process.
653
+
verbose: true,
654
+
},
649
655
},
650
656
...webdriverOptions,
651
657
...wdioOptions,
@@ -657,7 +663,10 @@ async function startCompassElectron(
657
663
letbrowser: CompassBrowser;
658
664
659
665
try{
660
-
browser=(awaitremote(options))asCompassBrowser;
666
+
// webdriverio's type is wrong for
667
+
// options.capabilities['wdio:chromedriverOptions'] and it doesn't allow
0 commit comments