From 269269a54dfd4a20da356d6711eba41221020cc7 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Mon, 25 Apr 2016 15:46:59 -0700 Subject: [PATCH] chore: revert `sendKeys` change from e1862887 closes #1175 --- public/docs/_examples/protractor.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/docs/_examples/protractor.config.js b/public/docs/_examples/protractor.config.js index a48114444a..fe4e419505 100644 --- a/public/docs/_examples/protractor.config.js +++ b/public/docs/_examples/protractor.config.js @@ -99,11 +99,15 @@ function itIf(cond, name, func) { } // Hack - because of bug with protractor send keys +// Hack - because of bug with send keys function sendKeys(element, str) { return str.split('').reduce(function (promise, char) { - return promise.resolve(element.sendKeys(char)); + return promise.then(function () { + return element.sendKeys(char); + }); }, element.getAttribute('value')); -} + // better to create a resolved promise here but ... don't know how with protractor; + } function Reporter(options) { var _defaultOutputFile = path.resolve(process.cwd(), "../../", 'protractor-results.txt');