hermione-retry-command
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -7,5 +7,7 @@ 'use strict'; | ||
const utils = require('./utils'); | ||
const commonUtils = require('../../utils'); | ||
module.exports = (browser, {retryCount, retryInterval}) => { | ||
const originScreenshot = browser.screenshot.bind(browser); | ||
const isWdioLatest = commonUtils.isWdioLatest(browser); | ||
@@ -22,3 +24,4 @@ const screenshotWithRetries = async () => { | ||
while (retriesLeft && utils.isBlankScreenshot(base64.value)) { | ||
const strBase64 = isWdioLatest ? base64 : base64.value; | ||
while (retriesLeft && utils.isBlankScreenshot(strBase64)) { | ||
await Promise.delay(retryInterval); | ||
@@ -25,0 +28,0 @@ |
@@ -10,1 +10,3 @@ 'use strict'; | ||
}; | ||
exports.isWdioLatest = (browser) => Boolean(browser.overwriteCommand); |
{ | ||
"name": "hermione-retry-command", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Plugin to retry commands in hermione", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
14238
195