X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fselenium%2Fwdio.conf.js;h=7b743280804dc8d7f37f24b370b2df84733096f3;hp=5565bc3e4a3e7132c26318176c5bfc157f6bb785;hb=9b00306abe57ff7b9f92728c664e60a29eb1791b;hpb=3d54d208bc0dd54baef18b3891ff0faf1d300214 diff --git a/tests/selenium/wdio.conf.js b/tests/selenium/wdio.conf.js index 5565bc3e4a..7b74328080 100644 --- a/tests/selenium/wdio.conf.js +++ b/tests/selenium/wdio.conf.js @@ -80,9 +80,10 @@ exports.config = { maxInstances: 1, // browserName: 'chrome', - // Since Chrome v57 https://bugs.chromium.org/p/chromedriver/issues/detail?id=1625 chromeOptions: { - args: [ '--enable-automation' ] + // Run headless when there is no DISPLAY + // --headless: since Chrome 59 https://chromium.googlesource.com/chromium/src/+/59.0.3030.0/headless/README.md + args: process.env.DISPLAY ? [] : [ '--headless' ] } } ], //