Skip to content

Commit

Permalink
Try running Firefox in headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Jun 30, 2022
1 parent abbfd3e commit 5e52099
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ module.exports = function(config) {
FirefoxNoSandbox: {
base: 'Firefox',
flags: ['--no-sandbox']
},FirefoxHeadless: {
base: 'Firefox',
flags: [
'--no-sandbox',
'--headless'
]
}
},
files: [
Expand Down
2 changes: 1 addition & 1 deletion omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
</goals>
<phase>test</phase>
<configuration>
<arguments>run test:dev-firefox</arguments>
<arguments>run test</arguments>
<workingDirectory>../</workingDirectory>
</configuration>
</execution>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5e52099

Please sign in to comment.