File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { AddressInfo } from 'net' ;
2
- import type { Browser , RemoteOptions } from 'webdriverio' ;
2
+ import type { Browser } from 'webdriverio' ;
3
3
import { remote as webdriverIoRemote } from 'webdriverio' ;
4
4
import express from 'express' ;
5
5
import { createServer as createHTTPServer } from 'http' ;
@@ -177,12 +177,12 @@ async function spawnBrowser(
177
177
url : string ,
178
178
hideLogs ?: boolean // For when real credentials are used in a flow
179
179
) : Promise < Browser > {
180
- const options : RemoteOptions = {
180
+ const options = {
181
181
capabilities : { browserName : 'chrome' } ,
182
182
waitforTimeout : 10_000 ,
183
183
waitforInterval : 100 ,
184
184
logLevel : hideLogs ? 'error' : 'info' ,
185
- } ;
185
+ } as const ;
186
186
187
187
// We set ELECTRON_RUN_AS_NODE=1 for tests so that we can use
188
188
// process.execPath to run scripts. Here, we want the actual, regular
You can’t perform that action at this time.
0 commit comments