diff options
| -rw-r--r-- | gui/test/e2e/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/test/e2e/utils.ts b/gui/test/e2e/utils.ts index dab83b2629..24926fe7fd 100644 --- a/gui/test/e2e/utils.ts +++ b/gui/test/e2e/utils.ts @@ -7,7 +7,7 @@ export interface StartAppResponse { } export interface TestUtils { - currentRoute: () => Promise<void>; + currentRoute: () => Promise<string>; waitForNavigation: (initiateNavigation?: () => Promise<void> | void) => Promise<string>; } @@ -43,7 +43,7 @@ export const launch = async (options: LaunchOptions): Promise<ElectronApplicatio const currentRouteFactory = (app: ElectronApplication) => { return async () => { - return await app.evaluate(({ webContents }) => { + return await app.evaluate<string>(({ webContents }) => { return webContents.getAllWebContents() // Select window that isn't devtools .find((webContents) => webContents.getURL().startsWith('file://'))! |
