Skip to content

Commit

Permalink
chore: set chromedriver flags
Browse files Browse the repository at this point in the history
  • Loading branch information
reiniiriarios committed Apr 26, 2024
1 parent 8dfbce9 commit b0e3bbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit b0e3bbc

Please sign in to comment.