From 5e52099ac27e8ce7ac150a7b3347a75d4c7dbe84 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 30 Jun 2022 15:34:12 -0400 Subject: [PATCH] Try running Firefox in headless mode --- karma.conf.js | 6 ++++++ omod/pom.xml | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 53e4715f4..b9015f92a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -17,6 +17,12 @@ module.exports = function(config) { FirefoxNoSandbox: { base: 'Firefox', flags: ['--no-sandbox'] + },FirefoxHeadless: { + base: 'Firefox', + flags: [ + '--no-sandbox', + '--headless' + ] } }, files: [ diff --git a/omod/pom.xml b/omod/pom.xml index 149107825..39c3272bb 100644 --- a/omod/pom.xml +++ b/omod/pom.xml @@ -409,7 +409,7 @@ test - run test:dev-firefox + run test ../ diff --git a/package.json b/package.json index 65b71102b..fdf497b72 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "build:prod": "webpack --progress --colors --env=prod", "build": "rimraf %npm_package_config_targetDir% && rimraf $npm_package_config_targetDir && webpack --progress --colors --env=prod", "watch": "webpack --progress --colors --watch --env=dev", - "test": "karma start", + "test": "karma start --browsers=FirefoxHeadless", "test:dev": "karma start --singleRun=false", "test:dev-chrome": "karma start --singleRun=false --browsers=ChromeWithoutSecurity", "test:dev-firefox": "karma start --singleRun=false --browsers=FirefoxNoSandbox",