Skip to content

Commit

Permalink
[core] up wdio deps (#359)
Browse files Browse the repository at this point in the history
* add --no-sandbox option to chromedriver
  • Loading branch information
zviadm authored Oct 15, 2024
1 parent dca2bef commit 8f85358
Show file tree
Hide file tree
Showing 2 changed files with 1,095 additions and 1,555 deletions.
10 changes: 8 additions & 2 deletions wdio.conf.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="wdio-electron-service" />
import path from 'path'
import type { Options } from '@wdio/types'
import { onPrepare, afterSession, beforeSession} from "./test/setup"
import { onPrepare, afterSession, beforeSession } from "./test/setup"

// NOTE(zviad): We can't use webdriverIO-s automatic binaryPath detection because
// we have dependency both on electorn-forge and on electron-builder.
Expand Down Expand Up @@ -87,6 +87,12 @@ export const config: Options.Testrunner = {
// custom application args
appBinaryPath: binaryPath(),
appArgs: []
},
// NOTE(zviad): There is some issue with chromeDriver and github actions and "--no-sandbox"
// is the only way to resolve it.
// Some additional context from random internet: https://issues.chromium.org/issues/42323434#comment62
'goog:chromeOptions': {
args: ["--no-sandbox"],
}
}],

Expand Down Expand Up @@ -115,7 +121,7 @@ export const config: Options.Testrunner = {
//
// If you only want to run your tests until a specific amount of tests have failed use
// bail (default is 0 - don't bail, run all tests).
bail: 0,
bail: 1,
//
// Set a base URL in order to shorten url command calls. If your `url` parameter starts
// with `/`, the base url gets prepended, not including the path portion of your baseUrl.
Expand Down
Loading

0 comments on commit 8f85358

Please sign in to comment.