File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
packages/compass-e2e-tests/helpers Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,16 @@ const packageCompassAsync = promisify(packageCompass);
6565// should we test compass-web (true) or compass electron (false)?
6666export const TEST_COMPASS_WEB = isTestingWeb ( ) ;
6767
68+ // Extending the WebdriverIO's types to allow a verbose option to the chromedriver
69+ declare global {
70+ // eslint-disable-next-line @typescript-eslint/no-namespace
71+ namespace WebdriverIO {
72+ interface ChromedriverOptions {
73+ verbose ?: boolean ;
74+ }
75+ }
76+ }
77+
6878/*
6979A helper so we can easily find all the tests we're skipping in compass-web.
7080Reason is there so you can fill it in and have it show up in search results
@@ -663,10 +673,7 @@ async function startCompassElectron(
663673 let browser : CompassBrowser ;
664674
665675 try {
666- // webdriverio's type is wrong for
667- // options.capabilities['wdio:chromedriverOptions'] and it doesn't allow
668- // verbose even though it does work
669- browser = ( await remote ( options as any ) ) as CompassBrowser ;
676+ browser = ( await remote ( options ) ) as CompassBrowser ;
670677 } catch ( err ) {
671678 debug ( 'Failed to start remote webdriver session' , {
672679 error : ( err as Error ) . stack ,
You can’t perform that action at this time.
0 commit comments