Move openstack-health-nodejs10-run-test-browser to Firefox

openstack-health-nodejs10-run-test-browser job started failing on
chrome browser
- https://bugs.launchpad.net/stackviz/+bug/1909021

Horizon and its plugins also moved the nodejs browser jobs to
firefox now, let's move openstack-health jobs to firefox.

Closes-Bug: #1909021
Change-Id: I06476189c17323101b4904c3da52248ce04bfb83
This commit is contained in:
Ghanshyam Mann 2020-12-22 09:33:51 -06:00 committed by Ghanshyam
parent d1afb3d881
commit b91c0054e4
4 changed files with 10 additions and 16 deletions

View File

@ -226,19 +226,19 @@ To test python code, run::
Frontend
--------
The frontend tests ``npm test`` and ``npm run unit`` use a headless chrome
driver and the driver requires the chromium-browser package to be installed on
The frontend tests ``npm test`` and ``npm run unit`` use a firefox
driver and the driver requires the firefox package to be installed on
the system, you can do this by running::
$ sudo apt-get install chromium-browser
$ sudo apt-get install firefox
.. note::
When using an operating system that is not ubuntu 16.04 the
process.env.CHROME_BIN variable may need to be updated in
openstack-health/test/karma.conf.js to reflect your system's chromium
openstack-health/test/karma.conf.js to reflect your system's firefox
path.
For example on SUSE Leap OS, process.env.CHROME_BIN = '/usr/bin/chromium'
For example on SUSE Leap OS, process.env.CHROME_BIN = '/usr/bin/firefox'
must be set.
To test javascript code, run::

View File

@ -59,7 +59,7 @@
"karma": "~2.0.0",
"karma-babel-preprocessor": "^4.0.1",
"karma-browserify": "^4.0.0",
"karma-chrome-launcher": "^2.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-cli": "0.0.4",
"karma-coverage": "0.2.6",
"karma-jasmine": "^0.3.6",

View File

@ -4,7 +4,7 @@ var istanbul = require('browserify-istanbul');
var isparta = require('isparta');
var ngAnnotate = require('browserify-ngannotate');
process.env.CHROME_BIN = 'chromium-browser'; // eslint-disable-line no-process-env
process.env.FIREFOX_BIN = 'firefox'; // eslint-disable-line no-process-env
module.exports = function(config) {
config.set({
@ -36,13 +36,7 @@ module.exports = function(config) {
autoWatch: true,
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
browsers: ['Firefox'],
singleRun: true,
@ -52,7 +46,7 @@ module.exports = function(config) {
'karma-coverage',
'karma-jasmine',
'karma-spec-reporter',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-subunit-reporter'
],

View File

@ -11,7 +11,7 @@ exports.config = {
directConnect: true,
capabilities: {
browserName: 'chrome'
browserName: 'firefox'
},
framework: 'jasmine',