Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

derby-webdriverio

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derby-webdriverio - npm Package Compare versions

Comparing version 4.1.1 to 5.0.0

35

index.js

@@ -1,12 +0,15 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {
var _, webdriverDefaultConf;
var defaults, defaultsDeep, webdriverDefaultConf;
webdriverDefaultConf = require('./webdriver.default');
_ = require('lodash');
defaults = require('lodash/defaults');
defaultsDeep = require('lodash/defaultsDeep');
module.exports = function(customConfig) {
var base, base1, base2, config, e, error, hasCoffee, ref;
config = _.defaults({}, customConfig, webdriverDefaultConf, {
var SS_HOST, SS_PATH, SS_PORT, TRAVIS, base, base1, base2, config, e, hasCoffee, ref, ref1;
ref = process.env, TRAVIS = ref.TRAVIS, SS_HOST = ref.SS_HOST, SS_PORT = ref.SS_PORT, SS_PATH = ref.SS_PATH;
config = defaults({}, customConfig, webdriverDefaultConf, {
specs: ['./test/e2e/**/*.js', './test/e2e/**/*.coffee'],

@@ -19,7 +22,7 @@ exclude: ['./test/e2e/**/_*.js', './test/e2e/**/_*.coffee'],

}
_.defaultsDeep(config.server, {
defaultsDeep(config.server, {
startCommand: 'npm start',
env: {
MONGO_URL: 'mongodb://localhost:27017/test',
PORT: ((ref = config.baseUrl.match(/:(\d+)/)) != null ? ref[1] : void 0) || 80
PORT: ((ref1 = config.baseUrl.match(/:(\d+)/)) != null ? ref1[1] : void 0) || 80
},

@@ -40,6 +43,5 @@ waitServer: {

}
_.defaults(config, {
sync: false,
defaults(config, {
framework: 'mocha',
reporters: ['dot'],
reporter: 'spec',
mochaOpts: {

@@ -52,3 +54,3 @@ ui: 'bdd',

});
if (process.env.TRAVIS) {
if (TRAVIS) {
if ((base = config.desiredCapabilities).chromeOptions == null) {

@@ -61,6 +63,15 @@ base.chromeOptions = {};

if ((base2 = config.desiredCapabilities.chromeOptions).binary == null) {
base2.binary = __dirname + '/chrome-linux/chrome';
base2.binary = '/usr/bin/chromium-browser';
}
config.desiredCapabilities.firefox_binary = '/usr/local/bin/firefox';
}
if (SS_HOST) {
config.host = SS_HOST;
}
if (SS_PORT) {
config.port = SS_PORT;
}
if (SS_PATH) {
config.path = SS_PATH;
}
config.before = require('./lib/before')(config, config.before);

@@ -67,0 +78,0 @@ config.after = require('./lib/after')(config, config.after);

@@ -1,7 +0,11 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {
var Bluebird;
var Bluebird, natural, nounInflector;
Bluebird = require('bluebird');
natural = require('natural');
nounInflector = new natural.NounInflector();
module.exports = function(webdriverConf, customAfter) {

@@ -11,3 +15,16 @@ return function(failures, pid) {

return Bluebird.mapSeries(Object.keys(webdriverConf.browsers), function(groupName) {
return global[groupName].end();
var amount, j, results, singularName;
amount = webdriverConf.browsers[groupName];
if (amount === 1 || amount === true) {
return global[groupName].end();
} else {
singularName = nounInflector.singularize(groupName);
return Bluebird.mapSeries((function() {
results = [];
for (var j = 0; 0 <= amount ? j < amount : j > amount; 0 <= amount ? j++ : j--){ results.push(j); }
return results;
}).apply(this), function(i) {
return global[groupName].select(singularName + i).end();
});
}
});

@@ -14,0 +31,0 @@ }).then(function() {

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {
var Bluebird, _, addCustomCommands, chai, chaiAsPromised, exec, natural, nounInflector, spawn, waitServer, webdriverio,
var Bluebird, addCustomCommands, chai, chaiAsPromised, exec, isNumber, natural, nounInflector, spawn, waitServer, webdriverio,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -12,3 +12,3 @@

_ = require('lodash');
isNumber = require('lodash/isNumber');

@@ -37,3 +37,3 @@ chai = require('chai');

global[groupName] = webdriverio.remote(webdriverConf);
} else if (_.isNumber(value) && value > 0) {
} else if (isNumber(value) && value > 0) {
global[groupName] = webdriverio.multiremote((function() {

@@ -104,3 +104,16 @@ var i, j, ref1, res, singularName;

return Bluebird.mapSeries(Object.keys(webdriverConf.browsers), function(groupName) {
return global[groupName].init().timeoutsAsyncScript(webdriverConf.waitforTimeout);
var amount, j, results, singularName;
amount = webdriverConf.browsers[groupName];
if (amount === 1 || amount === true) {
return global[groupName].init().timeoutsAsyncScript(webdriverConf.waitforTimeout);
} else {
singularName = nounInflector.singularize(groupName);
return Bluebird.mapSeries((function() {
results = [];
for (var j = 0; 0 <= amount ? j < amount : j > amount; 0 <= amount ? j++ : j--){ results.push(j); }
return results;
}).apply(this), function(i) {
return global[groupName].select(singularName + i).init().timeoutsAsyncScript(webdriverConf.waitforTimeout);
});
}
});

@@ -107,0 +120,0 @@ });

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {

@@ -34,11 +34,9 @@ module.exports = function(browser) {

return _push(url);
}, url).waitUntil((function(_this) {
return function() {
return _this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
});
};
})(this));
}, url).waitUntil(function() {
return this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
});
});
});

@@ -57,11 +55,9 @@ browser.addCommand('historyRefresh', function() {

return _refresh();
}).waitUntil((function(_this) {
return function() {
return _this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
});
};
})(this));
}).waitUntil(function() {
return this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
});
});
});

@@ -81,22 +77,18 @@ makeWaitForPageLoad = function(fnName) {

return isReact = ret.value;
}).then((function(_this) {
return function() {
return _this[fnName].apply(_this, args);
};
})(this)).then((function(_this) {
return function() {
return _this.waitUntil(function() {
if (isReact) {
return _this.pause(5000).then(function() {
return true;
});
}
return _this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
}).then(function() {
return this[fnName].apply(this, args);
}).then(function() {
return this.waitUntil(function() {
if (isReact) {
return this.pause(5000).then(function() {
return true;
});
}
return this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
});
};
})(this));
});
});
};

@@ -111,18 +103,16 @@ };

return isReact = ret.value;
}).then((function(_this) {
return function() {
return _this.waitUntil(function() {
if (isReact) {
return _this.pause(5000).then(function() {
return true;
});
}
return _this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
}).then(function() {
return this.waitUntil(function() {
if (isReact) {
return this.pause(5000).then(function() {
return true;
});
}
return this.execute(function() {
return window._rendered;
}).then(function(ret) {
return ret.value;
});
};
})(this));
});
});
});

@@ -132,2 +122,6 @@ browser.addCommand('clickAndWait', makeWaitForPageLoad('click'));

browser.addCommand('submitFormAndWait', makeWaitForPageLoad('submitForm'));
browser.addCommand('selectByVisibleTextAndWait', makeWaitForPageLoad('selectByVisibleText'));
browser.addCommand('selectByValueAndWait', makeWaitForPageLoad('selectByValue'));
browser.addCommand('selectByIndexAndWait', makeWaitForPageLoad('selectByIndex'));
browser.addCommand('selectByAttributeAndWait', makeWaitForPageLoad('selectByAttribute'));
modelMethod = function(method, isAsync) {

@@ -134,0 +128,0 @@ return function() {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7

@@ -9,3 +9,3 @@ /*

(function() {
var Bluebird, _, net, once, request;
var Bluebird, defaults, net, once, request;

@@ -18,3 +18,3 @@ net = require('net');

_ = require('lodash');
defaults = require('lodash/defaults');

@@ -26,3 +26,3 @@ Bluebird = require('bluebird');

var callback, client, err, wait;
options = _.defaults({}, options, {
options = defaults({}, options, {
timeout: 10 * 1000,

@@ -29,0 +29,0 @@ interval: 800,

{
"name": "derby-webdriverio",
"version": "4.1.1",
"version": "5.0.0",
"description": "Webdriver.io for Derby.js",

@@ -34,3 +34,3 @@ "main": "index.js",

"css-to-xpath": "0.0.3",
"lodash": "^3.8.0",
"lodash": "^4.17.10",
"natural": "^0.2.1",

@@ -44,3 +44,3 @@ "once": "^1.3.2",

"peerDependencies": {
"webdriverio": ">=4.0.0 <5.0.0 || >=400.0.0 <500.0.0",
"webdriverio": "^3.3",
"mocha": "^2.3",

@@ -47,0 +47,0 @@ "chai": "^3.4"

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {

@@ -3,0 +3,0 @@ module.exports = function(app, waitTimeout) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc