diff options
| -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': |
