From d163f6d258f5af9325e85200e498d405fa32914c Mon Sep 17 00:00:00 2001 From: Puneet Kala Date: Wed, 8 Jul 2020 18:16:33 +0530 Subject: [PATCH] 1.9.2 fix bug with default skip failure option (#73) (#74) --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8e0e182..99645fa 100644 --- a/index.js +++ b/index.js @@ -331,7 +331,7 @@ class ResembleHelper extends Helper { this.debug("MisMatch Percentage Calculated is " + misMatch + " for baseline " + baseImage); - if (options.skipFailure === false) { + if (!options.skipFailure) { assert(misMatch <= options.tolerance, "Screenshot does not match with the baseline " + baseImage + " when MissMatch Percentage is " + misMatch); } } diff --git a/package.json b/package.json index 86daff0..7d07f9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeceptjs-resemblehelper", - "version": "1.9.1", + "version": "1.9.2", "description": "Resemble Js helper for CodeceptJS, with Support for Webdriver, Puppeteer & Appium", "repository": { "type": "git",