Created
November 9, 2015 12:36
-
-
Save catehstn/9c04a9b30fdb97951ff9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- (void)testOpenInspireView { | |
[[app_ buttons][[SHAStrings inspireButtonTitleString]] tap]; | |
// Verify page load by checking the title. | |
XCUIElement *title = [app_ otherElements][@"Show and Hide"]; | |
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"exists == 1"]; | |
[self expectationForPredicate:predicate evaluatedWithObject:title handler:nil]; | |
[self waitForExpectationsWithTimeout:2.0 handler:nil]; | |
// Go back. | |
[[[[[app_ navigationBars][@"SHAInspireView"] childrenMatchingType:XCUIElementTypeButton] | |
matchingIdentifier:@"Back"] elementBoundByIndex:0] tap]; | |
// Should be at Home Page. | |
[self verifyHomePageButtons]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment