From 99d31f304f2026ba867848558079e7e90061c4e9 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Thu, 2 Aug 2018 14:07:57 +0200 Subject: [PATCH] extension update for countsearchresult to be coutnElement --- e2e/helpers/extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/helpers/extensions.js b/e2e/helpers/extensions.js index 57c33f84d..d40007f6e 100644 --- a/e2e/helpers/extensions.js +++ b/e2e/helpers/extensions.js @@ -134,7 +134,7 @@ Nightmare.action('selectText', function(selector, done) { .then(done); }); -Nightmare.action('countSearchResults', function(selector, done) { +Nightmare.action('countElement', function(selector, done) { this.evaluate_now(selector => { return document.querySelectorAll(selector).length; }, done, selector);