mirror of
https://github.com/appium/appium.git
synced 2026-02-09 03:09:02 -06:00
Add stability test for iOS keyboard
This commit is contained in:
30
test/functional/ios/testapp/keyboard-specs.js
Normal file
30
test/functional/ios/testapp/keyboard-specs.js
Normal file
@@ -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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user