Skip to content

Commit

Permalink
Merge pull request appium#3318 from imurchie/isaac-ios-keyboard
Browse files Browse the repository at this point in the history
Add stability test for iOS keyboard
  • Loading branch information
jlipps committed Aug 7, 2014
2 parents 74f9d52 + 5ce3760 commit 0a3ef5b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/functional/ios/testapp/keyboard-specs.js
Original file line number Diff line number Diff line change
@@ -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);
}
});

0 comments on commit 0a3ef5b

Please sign in to comment.