Skip to content

Commit abb9674

Browse files
committed
really enable chromedriver's verbose logging
1 parent 60b0a29 commit abb9674

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/compass-e2e-tests/helpers/compass.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,10 @@ async function startCompassElectron(
643643
},
644644
// from https://github.com/webdriverio-community/wdio-electron-service/blob/32457f60382cb4970c37c7f0a19f2907aaa32443/packages/wdio-electron-service/src/launcher.ts#L102
645645
'wdio:enforceWebDriverClassic': true,
646-
},
647-
'wdio:chromedriverOptions': {
648-
// TODO: enable logging so we don't have to debug things blindly
646+
'wdio:chromedriverOptions': {
647+
// enable logging so we don't have to debug things blindly
648+
verbose: true,
649+
},
649650
},
650651
...webdriverOptions,
651652
...wdioOptions,
@@ -657,7 +658,10 @@ async function startCompassElectron(
657658
let browser: CompassBrowser;
658659

659660
try {
660-
browser = (await remote(options)) as CompassBrowser;
661+
// webdriverio's type is wrong for
662+
// options.capabilities['wdio:chromedriverOptions'] and it doesn't allow
663+
// verbose even though it does work
664+
browser = (await remote(options as any)) as CompassBrowser;
661665
} catch (err) {
662666
debug('Failed to start remote webdriver session', {
663667
error: (err as Error).stack,

0 commit comments

Comments
 (0)