From b0e3bbcb2aca4657137311dd8725929dcb5962e8 Mon Sep 17 00:00:00 2001 From: Emma Litwa-Vulcu <80431903+reiniiriarios@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:13:35 -0700 Subject: [PATCH] chore: set chromedriver flags --- wdio.conf.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wdio.conf.ts b/wdio.conf.ts index 39ccb82..4f8d717 100644 --- a/wdio.conf.ts +++ b/wdio.conf.ts @@ -86,8 +86,12 @@ export const config: Options.Testrunner = { process.platform === "win32" ? "win-unpacked" : `${process.platform}-unpacked`, process.platform === "linux" ? "wordwyrm" : process.platform === "win32" ? "Wordwyrm.exe" : "Wordwyrm", ), - // custom application args - appArgs: [], + // https://peter.sh/experiments/chromium-command-line-switches/ + // no-sandbox: disable chrome's sandbox for testing + // headless: does not seem to affect electron tests? + // disable-dev-shm-usage: overcome low resource issues + // remote-debugging-pipe: disables DevToolsActivePort + appArgs: ["no-sandbox", "headless", "disable-dev-shm-usage", "remote-debugging-pipe", "disable-extensions"], }, "wdio:chromedriverOptions": { binary: path.join(