diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-10-01 08:28:46 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-10-01 08:28:46 +0200 |
| commit | 7a29bd5ff6214ecde832539942e02f6dde22b15f (patch) | |
| tree | 824616b48a9780a723c76816911d748e6dbdc40a | |
| parent | 18a9098919cb0f5e325fe1399806991bc56da4d8 (diff) | |
| parent | b9010e5e28b329f6a1012ba92c5207537c3170a6 (diff) | |
| download | mullvadvpn-7a29bd5ff6214ecde832539942e02f6dde22b15f.tar.xz mullvadvpn-7a29bd5ff6214ecde832539942e02f6dde22b15f.zip | |
Merge branch 'allow-state-dependent-tests-to-run-against-build'
| -rw-r--r-- | desktop/packages/mullvad-vpn/test/e2e/installed/installed-utils.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/test/e2e/installed/installed-utils.ts b/desktop/packages/mullvad-vpn/test/e2e/installed/installed-utils.ts index 9e4dd6c79c..298d104cec 100644 --- a/desktop/packages/mullvad-vpn/test/e2e/installed/installed-utils.ts +++ b/desktop/packages/mullvad-vpn/test/e2e/installed/installed-utils.ts @@ -1,9 +1,25 @@ import { startApp } from '../utils'; +const testStartBuild = process.env.TEST_START_BUILD === '1'; + export const startInstalledApp = async (): ReturnType<typeof startApp> => { - return startApp({ executablePath: getAppInstallPath() }); + const options = getStartOptions(); + + return startApp(options); }; +function getStartOptions() { + if (testStartBuild) { + return { + args: ['.'], + }; + } + + return { + executablePath: getAppInstallPath(), + }; +} + function getAppInstallPath(): string { switch (process.platform) { case 'win32': |
