diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-06-28 15:03:05 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-06-28 15:03:05 +0200 |
| commit | f87e00d097dcf189fec8f9b139c5baac2f0058bc (patch) | |
| tree | d6d296747ee5e4409f9ce35f0e81f24a8ddb5b45 | |
| parent | 064f58544935ad60e44f3697fc7d218dc8208382 (diff) | |
| parent | f562452ce5ed70e2b33b390b301aa57d829d78c0 (diff) | |
| download | mullvadvpn-f87e00d097dcf189fec8f9b139c5baac2f0058bc.tar.xz mullvadvpn-f87e00d097dcf189fec8f9b139c5baac2f0058bc.zip | |
Merge branch 'fix-gui-test-function-type'
| -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://'))! |
