Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
disable SL_IOS9
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Sep 13, 2017
1 parent d07a832 commit 80dd75b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion karma-dist-sauce-jasmine.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

module.exports = function (config) {
require('./karma-dist-jasmine.conf.js')(config);
require('./sauce.conf')(config);
require('./sauce.conf')(config, ['SL_IOS9']);
};
15 changes: 13 additions & 2 deletions sauce.conf.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Sauce configuration

module.exports = function (config) {
module.exports = function (config, ignoredLaunchers) {
// The WS server is not available with Sauce
config.files.unshift('test/saucelabs.js');

var customLaunchers = {
var basicLaunchers = {
'SL_CHROME': {
base: 'SauceLabs',
browserName: 'chrome',
Expand Down Expand Up @@ -153,6 +153,17 @@ module.exports = function (config) {
}
};

var customLaunchers = {};
if (!ignoredLaunchers) {
customLaunchers = basicLaunchers;
} else {
Object.keys(basicLaunchers).forEach(function(key) {
if (ignoredLaunchers.filter(function(ignore) {return ignore === key;}).length === 0) {
customLaunchers[key] = basicLaunchers[key];
}
});
}

config.set({
captureTimeout: 120000,
browserNoActivityTimeout: 240000,
Expand Down

0 comments on commit 80dd75b

Please sign in to comment.