From 4bdae8f84f10f13d163ec5b1413d25e42a66afe3 Mon Sep 17 00:00:00 2001 From: Vadim Aleksandrov Date: Tue, 14 Dec 2021 15:34:37 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BA=D0=B0=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=B8=D0=B8?= =?UTF-8?q?=20=D0=B4=D0=BE=D0=BF=D1=83=D1=81=D1=82=D0=B8=D0=BC=D0=BE=D0=B9?= =?UTF-8?q?=20=D1=80=D0=B0=D0=B7=D0=BD=D0=B8=D1=86=D1=8B=20=D1=81=D0=BA?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D1=88=D0=BE=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/nightwatch-image-comparison/utils/take-screenshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nightwatch-image-comparison/utils/take-screenshot.js b/modules/nightwatch-image-comparison/utils/take-screenshot.js index eb05c92a..8a2c2dcc 100644 --- a/modules/nightwatch-image-comparison/utils/take-screenshot.js +++ b/modules/nightwatch-image-comparison/utils/take-screenshot.js @@ -174,7 +174,7 @@ function takeScreenshot({ client, description, check, methodOptions, callback }) } } - if (result.misMatchPercentage > allowedMisMatchPercentage / 100) { + if (result.misMatchPercentage > allowedMisMatchPercentage) { callback({ status: 'error', error: 'Screenshot does not match', result }) return }