Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
const merge = require('deepmerge'); | ||
const slSettings = require('@advanced-rest-client/testing-karma-sl/sl-settings.js'); | ||
const { slSettings } = require('@advanced-rest-client/testing-karma-sl'); | ||
const createBaseConfig = require('./karma.conf.js'); | ||
|
||
module.exports = (config) => { | ||
const cnf = slSettings(); | ||
cnf.sauceLabs.testName = 'anypoint-radio-button'; | ||
cnf.browsers = [ | ||
'SL_Chrome', | ||
'SL_Chrome-1', | ||
'SL_Firefox', | ||
'SL_Firefox-1', | ||
'SL_Safari', | ||
'SL_EDGE' | ||
]; | ||
if (process.env.TRAVIS) { | ||
const buildLabel = 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')'; | ||
|
||
cnf.browserStack = { | ||
build: buildLabel, | ||
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER | ||
}; | ||
|
||
cnf.sauceLabs.build = buildLabel; | ||
cnf.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER; | ||
} | ||
|
||
config.set(merge(createBaseConfig(config), cnf)); | ||
|
||
const slConfig = merge(slSettings(config), { | ||
sauceLabs: { | ||
testName: 'anypoint-radio-button', | ||
}, | ||
// client: { | ||
// mocha: { | ||
// timeout : 6000 | ||
// } | ||
// } | ||
}); | ||
// if you want to change default browsers | ||
// slConfig.browsers = [ | ||
// 'SL_Chrome', | ||
// 'SL_Chrome-1', | ||
// 'SL_Firefox', | ||
// 'SL_Firefox-1', | ||
// 'SL_Safari', | ||
// 'SL_Safari-1', | ||
// 'SL_EDGE' | ||
// ]; | ||
config.set(merge(createBaseConfig(config), slConfig)); | ||
return config; | ||
}; |