diff --git a/blueprints/module-unification-app/files/testem.js b/blueprints/module-unification-app/files/testem.js index 09a686f94d..d1755a4ea4 100644 --- a/blueprints/module-unification-app/files/testem.js +++ b/blueprints/module-unification-app/files/testem.js @@ -8,11 +8,17 @@ module.exports = { 'Chrome' ], browser_args: { - Chrome: [ - '--disable-gpu', - '--headless', - '--remote-debugging-port=9222', - '--window-size=1440,900' - ] + Chrome: { + mode: 'ci', + args: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.TRAVIS ? '--no-sandbox' : null, + + '--disable-gpu', + '--headless', + '--remote-debugging-port=0', + '--window-size=1440,900' + ].filter(Boolean) + } } }; diff --git a/tests/fixtures/module-unification-addon/testem.js b/tests/fixtures/module-unification-addon/testem.js index 09a686f94d..d1755a4ea4 100644 --- a/tests/fixtures/module-unification-addon/testem.js +++ b/tests/fixtures/module-unification-addon/testem.js @@ -8,11 +8,17 @@ module.exports = { 'Chrome' ], browser_args: { - Chrome: [ - '--disable-gpu', - '--headless', - '--remote-debugging-port=9222', - '--window-size=1440,900' - ] + Chrome: { + mode: 'ci', + args: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.TRAVIS ? '--no-sandbox' : null, + + '--disable-gpu', + '--headless', + '--remote-debugging-port=0', + '--window-size=1440,900' + ].filter(Boolean) + } } };