summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-02-23 08:35:14 +0100
committerOskar Nyberg <oskar@mullvad.net>2023-02-23 14:29:31 +0100
commit8c4fd3a2339f50bdce9f6c9ee0469f992b46633e (patch)
treef922d19519a00b57739eb5a354e6df810b5bd69d
parenta0d5aa28ad71e340bfa002c83285235ec74cea68 (diff)
downloadmullvadvpn-8c4fd3a2339f50bdce9f6c9ee0469f992b46633e.tar.xz
mullvadvpn-8c4fd3a2339f50bdce9f6c9ee0469f992b46633e.zip
Remove unnecessary wait during electron launch in tests
-rw-r--r--gui/test/e2e/utils.ts13
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) => {