summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-06-28 15:03:05 +0200
committerOskar Nyberg <oskar@mullvad.net>2023-06-28 15:03:05 +0200
commitf87e00d097dcf189fec8f9b139c5baac2f0058bc (patch)
treed6d296747ee5e4409f9ce35f0e81f24a8ddb5b45
parent064f58544935ad60e44f3697fc7d218dc8208382 (diff)
parentf562452ce5ed70e2b33b390b301aa57d829d78c0 (diff)
downloadmullvadvpn-f87e00d097dcf189fec8f9b139c5baac2f0058bc.tar.xz
mullvadvpn-f87e00d097dcf189fec8f9b139c5baac2f0058bc.zip
Merge branch 'fix-gui-test-function-type'
-rw-r--r--gui/test/e2e/utils.ts4
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://'))!