-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix text entry tests with typing prediction taps
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
osx_image: xcode8.2 | ||
language: objective-c | ||
script: xcodebuild -project Formulary.xcodeproj/ -scheme Formulary -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.2' test | ||
script: | ||
- xcodebuild -project Formulary.xcodeproj/ -scheme Formulary -sdk iphonesimulator -destination 'platform=iOS Simulator,id=DB794781-65A7-4884-8D00-AAC3CBD39A44,OS=10.2' test |
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 |
---|---|---|
|
@@ -27,7 +27,10 @@ - (void)testFullExampleForm | |
XCUIElementQuery *tablesQuery = app.tables; | ||
[tablesQuery.textFields[@"Name"] tap]; | ||
[tablesQuery.textFields[@"Name"] typeText:@"Testy"]; | ||
XCTAssertTrue(tablesQuery.textFields[@"Name, Testy"].exists); | ||
|
||
[[[XCUIApplication alloc] init].keyboards.otherElements[@"Typing Predictions"].otherElements[@"\u201cTesty\u201d"] tap]; | ||
|
||
XCTAssertTrue(tablesQuery.textFields[@"Name, Testy "].exists); | ||
|
||
[tablesQuery.textFields[@"Email"] tap]; | ||
|
||
|
@@ -65,7 +68,7 @@ - (void)testFullExampleForm | |
[[tablesQuery.cells containingType:XCUIElementTypeButton identifier:@"Show Values"].element tap]; | ||
|
||
XCUIElement *formValuesAlert = app.alerts[@"Form Values"]; | ||
XCUIElement *staticTextResult = formValuesAlert.staticTexts[@"{\"name\":\"Testy\",\"likesGoats\":true,\"email\":\"[email protected]\",\"thoughts\":\"Some thoughts\",\"favoriteNumber\":\"12\",\"Food\":[\"Ice Cream\",\"Pizza\"],\"House\":\"Ravenclaw\",\"age\":\"28\"}"]; | ||
XCUIElement *staticTextResult = formValuesAlert.staticTexts[@"{\"name\":\"Testy \",\"likesGoats\":true,\"email\":\"[email protected]\",\"thoughts\":\"Some thoughts\",\"favoriteNumber\":\"12\",\"Food\":[\"Ice Cream\",\"Pizza\"],\"House\":\"Ravenclaw\",\"age\":\"28\"}"]; | ||
XCTAssertTrue(staticTextResult.exists); | ||
|
||
[formValuesAlert.buttons[@"Ok"] tap]; | ||
|
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