From bc6e1aab9740c38c104646d28591b941917c229c Mon Sep 17 00:00:00 2001 From: goosewobbler Date: Wed, 31 Jul 2024 12:16:28 +0100 Subject: [PATCH] test: fix electron path for windows --- packages/wdio-electron-service/test/launcher.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wdio-electron-service/test/launcher.spec.ts b/packages/wdio-electron-service/test/launcher.spec.ts index ca515712..1d84577e 100644 --- a/packages/wdio-electron-service/test/launcher.spec.ts +++ b/packages/wdio-electron-service/test/launcher.spec.ts @@ -446,7 +446,7 @@ describe('onPrepare', () => { 'browserVersion': '116.0.5845.190', 'goog:chromeOptions': { args: ['--app=path/to/main.bundle.js'], - binary: `${getFixtureDir('no-build-tool')}/node_modules/.bin/electron`, + binary: path.join(getFixtureDir('no-build-tool'), 'node_modules', '.bin', 'electron'), windowTypes: ['app', 'webview'], }, 'wdio:electronServiceOptions': {},