X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fselenium%2Fwdio.conf.js;h=0b374c848a67f91bfa3050d1d6acf7f9c2396d60;hb=4ff5652501b6cd1467072290b61241a559a48844;hp=7b743280804dc8d7f37f24b370b2df84733096f3;hpb=296fe3b9009ec86aed06be88f9f08c400a09d78b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/selenium/wdio.conf.js b/tests/selenium/wdio.conf.js index 7b74328080..0b374c848a 100644 --- a/tests/selenium/wdio.conf.js +++ b/tests/selenium/wdio.conf.js @@ -1,6 +1,7 @@ 'use strict'; const password = 'vagrant', + fs = require( 'fs' ), path = require( 'path' ), username = 'Admin'; @@ -83,7 +84,12 @@ exports.config = { chromeOptions: { // 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' ] + args: ( + process.env.DISPLAY ? [] : [ '--headless' ] + ).concat( + // Disable Chrome sandbox when running in Docker + fs.existsSync( '/.dockerenv' ) ? [ '--no-sandbox' ] : [] + ) } } ], //