From 14b4e12c29921ba22f53dd8c4b42e3faec63a917 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sun, 25 Mar 2018 03:25:02 +0200 Subject: [PATCH] fix: ensure that headless-chrome tests run in all environments Bug with the Linux sandbox SUID can appear or not depending on the Kernel version on the runner. https://gist.github.com/ncoden/6e79cef6f62608fd9443ea2a601806bc Using `no-sandbox` with chrome is generally not recommended for security reasons, but recommended in this case by Travis. See: * https://docs.travis-ci.com/user/chrome#Sandboxing * https://github.com/travis-ci/travis-ci/issues/8836 * https://github.com/GoogleChrome/puppeteer/issues/515 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1b3bebb61..9b12b9f47 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,9 @@ "test:ci": "npm run test:sass && npm run test:javascript:ci", "test:sass": "mocha test/sass/test_sass.js", "test:javascript:transpile": "gulp sass:foundation && gulp test:transpile-js", - "test:javascript:units": "npm run test:javascript:transpile && mocha-headless-chrome -a ignore-resource-errors -f test/javascript/index.html", + "test:javascript:units": "npm run test:javascript:transpile && mocha-headless-chrome -a ignore-resource-errors -a no-sandbox -f test/javascript/index.html", "test:javascript:browserstack": "npm run test:javascript:transpile && browserstack-runner", - "test:javascript:ci": "npm run test:javascript:transpile && mocha-headless-chrome -a ignore-resource-errors -f test/javascript/index.html && browserstack-runner", + "test:javascript:ci": "npm run test:javascript:transpile && mocha-headless-chrome -a ignore-resource-errors -a no-sandbox -f test/javascript/index.html && browserstack-runner", "test:visual": "gulp test", "deploy": "gulp deploy", "deploy:prep": "gulp deploy:prep", -- 2.47.2