diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-02-27 10:06:45 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-02-27 10:06:45 +0100 |
| commit | f49760525dbd4bfb5e19a0231d1d8b7a41f76ce1 (patch) | |
| tree | 1be5586f97d23d154a0d245a115af708761174e1 /gui/test | |
| parent | a0d5aa28ad71e340bfa002c83285235ec74cea68 (diff) | |
| parent | c7a47757e8208ff7b3b809621680aa79abc9f4f3 (diff) | |
| download | mullvadvpn-f49760525dbd4bfb5e19a0231d1d8b7a41f76ce1.tar.xz mullvadvpn-f49760525dbd4bfb5e19a0231d1d8b7a41f76ce1.zip | |
Merge branch 'fix-e2e-tests-failing'
Diffstat (limited to 'gui/test')
| -rw-r--r-- | gui/test/e2e/utils.ts | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gui/test/e2e/utils.ts b/gui/test/e2e/utils.ts index feec4e8b3c..b0e4f9ec0f 100644 --- a/gui/test/e2e/utils.ts +++ b/gui/test/e2e/utils.ts @@ -38,18 +38,7 @@ export const startApp = async (options: LaunchOptions): Promise<StartAppResponse export const launch = async (options: LaunchOptions): Promise<ElectronApplication> => { process.env.CI = 'e2e'; - const app = await electron.launch(options); - - await app.evaluate(({ webContents }) => { - return new Promise((resolve) => { - webContents.getAllWebContents() - // Select window that isn't devtools - .find((webContents) => webContents.getURL().startsWith('file://'))! - .once('did-finish-load', resolve); - }); - }); - - return app; + return await electron.launch(options); } const currentRouteFactory = (app: ElectronApplication) => { |
