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);