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