From 3af9b5196ac30fb7d8040522c00deb3ce9e4e64e Mon Sep 17 00:00:00 2001 From: Emma Litwa-Vulcu <80431903+reiniiriarios@users.noreply.github.com> Date: Thu, 25 Apr 2024 16:37:08 -0700 Subject: [PATCH] test: change app bin path per platform --- wdio.conf.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wdio.conf.ts b/wdio.conf.ts index 60bc3bf..b77a367 100644 --- a/wdio.conf.ts +++ b/wdio.conf.ts @@ -81,6 +81,12 @@ export const config: Options.Testrunner = { // Electron service options // see https://webdriver.io/docs/desktop-testing/electron/configuration/#service-options "wdio:electronServiceOptions": { + appBinaryPath: path.join( + path.resolve("."), + "build", + process.platform === "win32" ? "win-unpacked" : `${process.platform}-unpacked`, + process.platform === "linux" ? "wordwyrm" : process.platform === "win32" ? "Wordwyrm.exe" : "Wordwyrm", + ), // custom application args appArgs: [], },