karma-sauce-launcher
Advanced tools
Comparing version 0.1.5 to 0.1.7
13
index.js
@@ -71,3 +71,3 @@ // TODO(vojta): | ||
var browserName = args.browserName + (args.version ? ' ' + args.version : '') + | ||
(args.platform ? ' (' + args.platform + ')' : '') + ' on SauceLabs'; | ||
(args.platform ? ' (' + args.platform + ')' : ''); | ||
var startConnect = config.startConnect !== false; | ||
@@ -85,3 +85,3 @@ var log = logger.create('launcher.sauce'); | ||
this.id = id; | ||
this.name = browserName; | ||
this.name = browserName + ' on SauceLabs'; | ||
@@ -91,3 +91,3 @@ var pendingHeartBeat; | ||
pendingHeartBeat = setTimeout(function() { | ||
log.debug('Heartbeat to Sauce Labs - fetching title'); | ||
log.debug('Heartbeat to Sauce Labs (%s) - fetching title', browserName); | ||
driver.title(); | ||
@@ -115,3 +115,4 @@ heartbeat(); | ||
process.env.CIRCLE_BUILD_NUM || null, | ||
'device-orientation': args.deviceOrientation || null | ||
'device-orientation': args.deviceOrientation || null, | ||
'disable-popup-handler': true | ||
}); | ||
@@ -146,3 +147,3 @@ | ||
log.info('%s session at https://saucelabs.com/tests/%s', browserName, driver.sessionID); | ||
log.debug('WebDriver channel instantiated, opening ' + url); | ||
log.debug('WebDriver channel for %s instantiated, opening %s', browserName, url); | ||
driver.get(url, heartbeat); | ||
@@ -171,3 +172,3 @@ }); | ||
clearTimeout(pendingHeartBeat); | ||
log.debug('Shutting down Sauce Labs driver'); | ||
log.debug('Shutting down the %s driver', browserName); | ||
// workaround - navigate to other page to avoid re-connection | ||
@@ -174,0 +175,0 @@ driver.get('about:blank', function() { |
{ | ||
"name": "karma-sauce-launcher", | ||
"version": "0.1.5", | ||
"version": "0.1.7", | ||
"description": "A Karma plugin. Launch any browser on SauceLabs!", | ||
@@ -41,2 +41,3 @@ "main": "index.js", | ||
"Parashuram <code@nparashuram.com>", | ||
"Parashuram N <code@r.nparashuram.com>", | ||
"Ralf Kistner <ralf@embarkmobile.com>", | ||
@@ -43,0 +44,0 @@ "yhwh <ferrero.nicolas@gmail.com>" |
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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
11602
4
201
0
76