diff --git a/test/functional/ios/testapp/keyboard-specs.js b/test/functional/ios/testapp/keyboard-specs.js new file mode 100644 index 000000000..63a6f7159 --- /dev/null +++ b/test/functional/ios/testapp/keyboard-specs.js @@ -0,0 +1,30 @@ +"use strict"; + +var setup = require("../../common/setup-base") + , desired = require('./desired') + , _ = require('underscore'); + + +describe("testapp - keyboard stability @skip-ci", function () { + var runs = 10 + , text = 'Delhi is New @@@ QA-BREAKFAST-FOOD-0001'; + + var driver; + setup(this, _.defaults({ + deviceName: 'iPad Simulator', + }, desired)).then(function (d) { driver = d; }); + + var test = function () { + it("should send keys to a text field", function (done) { + driver + .elementByClassName('UIATextField') + .sendKeys(text) + .text().should.become(text) + .nodeify(done); + }); + }; + + for (var n = 0; n < runs; n++) { + describe('sendKeys test ' + (n + 1), test); + } +});