From 3bd137a43523c003176395b0ae512b3276498510 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Wed, 13 Feb 2019 08:53:57 +0100 Subject: [PATCH] minor refactor --- e2e/helpers/extensions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/helpers/extensions.js b/e2e/helpers/extensions.js index 27590c4ea..e311df432 100644 --- a/e2e/helpers/extensions.js +++ b/e2e/helpers/extensions.js @@ -266,11 +266,11 @@ let actions = { }); }, - waitForTextInElement: function(selector, name, done) { + waitForTextInElement: function(selector, text, done) { this.wait(selector) - .wait((selector, name) => { - return document.querySelector(selector).innerText.toLowerCase().includes(name.toLowerCase()); - }, selector, name) + .wait((selector, text) => { + return document.querySelector(selector).innerText.toLowerCase().includes(text.toLowerCase()); + }, selector, text) .then(done) .catch(done); },