forked from appium/appium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request appium#3318 from imurchie/isaac-ios-keyboard
Add stability test for iOS keyboard
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
}); |