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 Frontend
-------- --------
The frontend tests ``npm test`` and ``npm run unit`` use a headless chrome The frontend tests ``npm test`` and ``npm run unit`` use a firefox
driver and the driver requires the chromium-browser package to be installed on driver and the driver requires the firefox package to be installed on
the system, you can do this by running:: the system, you can do this by running::
$ sudo apt-get install chromium-browser $ sudo apt-get install firefox
.. note:: .. note::
When using an operating system that is not ubuntu 16.04 the When using an operating system that is not ubuntu 16.04 the
process.env.CHROME_BIN variable may need to be updated in 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. 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. must be set.
To test javascript code, run:: To test javascript code, run::

View File

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

View File

@ -4,7 +4,7 @@ var istanbul = require('browserify-istanbul');
var isparta = require('isparta'); var isparta = require('isparta');
var ngAnnotate = require('browserify-ngannotate'); 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) { module.exports = function(config) {
config.set({ config.set({
@ -36,13 +36,7 @@ module.exports = function(config) {
autoWatch: true, autoWatch: true,
browsers: ['ChromeHeadlessNoSandbox'], browsers: ['Firefox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: true, singleRun: true,
@ -52,7 +46,7 @@ module.exports = function(config) {
'karma-coverage', 'karma-coverage',
'karma-jasmine', 'karma-jasmine',
'karma-spec-reporter', 'karma-spec-reporter',
'karma-chrome-launcher', 'karma-firefox-launcher',
'karma-subunit-reporter' 'karma-subunit-reporter'
], ],

View File

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