diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2023-06-27 16:51:29 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-06-28 15:02:48 +0200 |
| commit | f562452ce5ed70e2b33b390b301aa57d829d78c0 (patch) | |
| tree | d6d296747ee5e4409f9ce35f0e81f24a8ddb5b45 | |
| parent | 064f58544935ad60e44f3697fc7d218dc8208382 (diff) | |
| download | mullvadvpn-f562452ce5ed70e2b33b390b301aa57d829d78c0.tar.xz mullvadvpn-f562452ce5ed70e2b33b390b301aa57d829d78c0.zip | |
Fix type signature of `currentRoute`
Change the type signature of `currentRoute` to return a `string` rather
than `void`.
| -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://'))! |
