derby-webdriverio
Advanced tools
Comparing version 4.0.0 to 4.0.1
32
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,3 +43,3 @@ waitServer: { | ||
} | ||
_.defaults(config, { | ||
defaults(config, { | ||
framework: 'mocha', | ||
@@ -51,3 +54,3 @@ reporter: 'spec', | ||
}); | ||
if (process.env.TRAVIS) { | ||
if (TRAVIS) { | ||
if ((base = config.desiredCapabilities).chromeOptions == null) { | ||
@@ -60,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); | ||
@@ -66,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() { | ||
@@ -118,2 +118,6 @@ module.exports = function(browser) { | ||
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) { | ||
@@ -120,0 +124,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.0.0", | ||
"version": "4.0.1", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
36933
528
4
+ Addedansi-regex@1.1.12.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedarchiver@0.14.4(transitive)
+ Addedarray.from@0.2.0(transitive)
+ Addedbl@0.9.5(transitive)
+ Addedcaseless@0.8.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcli-width@1.1.1(transitive)
+ Addedco@4.6.0(transitive)
+ Addedcompress-commons@0.2.9(transitive)
+ Addedcrc32-stream@0.3.4(transitive)
+ Addeddeepmerge@0.2.10(transitive)
+ Addedejs@2.7.4(transitive)
+ Addedfigures@1.7.0(transitive)
+ Addedglob@4.3.55.0.15(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhawk@1.1.1(transitive)
+ Addedinquirer@0.8.5(transitive)
+ Addedis-generator@1.0.3(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedlazystream@0.1.0(transitive)
+ Addedlodash@3.2.0(transitive)
+ Addedmime-types@1.0.2(transitive)
+ Addedminimatch@2.0.10(transitive)
+ Addedmute-stream@0.0.4(transitive)
+ Addednode-int64@0.3.3(transitive)
+ Addedoauth-sign@0.5.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpunycode@1.3.2(transitive)
+ Addedq@1.3.0(transitive)
+ Addedqs@2.3.3(transitive)
+ Addedquerystring@0.2.0(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedreadline2@0.1.1(transitive)
+ Addedrequest@2.49.0(transitive)
+ Addedrx@2.5.3(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedstringstream@0.0.6(transitive)
+ Addedstrip-ansi@2.0.13.0.1(transitive)
+ Addedsupports-color@1.3.12.0.0(transitive)
+ Addedtar-stream@1.1.5(transitive)
+ Addedtldts@6.1.61(transitive)
+ Addedtldts-core@6.1.61(transitive)
+ Addedtough-cookie@5.0.0(transitive)
+ Addedtunnel-agent@0.4.3(transitive)
+ Addedurl@0.10.3(transitive)
+ Addedwebdriverio@3.4.0(transitive)
+ Addedzip-stream@0.5.2(transitive)
- Removedajv@6.12.6(transitive)
- Removedansi-escapes@3.2.0(transitive)
- Removedansi-regex@3.0.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedarchiver@2.1.1(transitive)
- Removedarchiver-utils@1.3.0(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasync@2.6.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedbl@1.2.3(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedbuffer-alloc@1.2.0(transitive)
- Removedbuffer-alloc-unsafe@1.1.0(transitive)
- Removedbuffer-fill@1.0.0(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedchardet@0.4.2(transitive)
- Removedcli-cursor@2.1.0(transitive)
- Removedcli-width@2.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcompress-commons@1.2.2(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcrc@3.8.0(transitive)
- Removedcrc32-stream@2.0.0(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddeepmerge@2.0.1(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedejs@2.5.9(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedexternal-editor@2.2.0(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfigures@2.0.0(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedfs-constants@1.0.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgaze@1.1.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedglob@7.1.77.2.3(transitive)
- Removedglobule@1.3.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedgrapheme-splitter@1.0.4(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedhas-flag@2.0.03.0.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedieee754@1.2.1(transitive)
- Removedinquirer@3.3.0(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedmimic-fn@1.2.0(transitive)
- Removedminimatch@3.0.8(transitive)
- Removedmute-stream@0.0.7(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removednpm-install-package@2.1.0(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedonetime@2.0.1(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpsl@1.10.0(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedq@1.5.1(transitive)
- Removedqs@6.13.16.5.3(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrequest@2.88.2(transitive)
- Removedrestore-cursor@2.0.0(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedrx-lite@4.0.8(transitive)
- Removedrx-lite-aggregates@4.0.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedstring-width@2.1.1(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@4.0.0(transitive)
- Removedsupports-color@5.0.15.5.0(transitive)
- Removedtar-stream@1.6.2(transitive)
- Removedtmp@0.0.33(transitive)
- Removedto-buffer@1.1.1(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedurl@0.11.4(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedwdio-dot-reporter@0.0.10(transitive)
- Removedwebdriverio@4.14.4(transitive)
- Removedzip-stream@1.2.0(transitive)
Updatedlodash@^4.17.10