From 13566a175c9e9de111c589fa721f786fe89ca0ff Mon Sep 17 00:00:00 2001 From: Jamie Davies Date: Tue, 28 Nov 2017 13:27:33 +0000 Subject: [PATCH] fix: Fixed not checking if dragTo is a valid element --- lib/tests-api/actions-builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests-api/actions-builder.js b/lib/tests-api/actions-builder.js index 2f030dfc5..fa02f62f6 100644 --- a/lib/tests-api/actions-builder.js +++ b/lib/tests-api/actions-builder.js @@ -133,7 +133,7 @@ module.exports = class ActionsBuilder { throw new TypeError('.dragAndDrop() "element" argument should be valid element or CSS selector'); } - if (isInvalidElement(element)) { + if (isInvalidElement(dragTo)) { throw new TypeError('.dragAndDrop() "dragTo" argument should be valid element or CSS selector'); }