Skip to content

Commit

Permalink
test: updating SL configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Nov 20, 2019
1 parent 9468c5e commit 9f91c23
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions karma.sl.config.js
@@ -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;
};

0 comments on commit 9f91c23

Please sign in to comment.