Skip to content

Instantly share code, notes, and snippets.

@catehstn
Created November 9, 2015 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catehstn/9c04a9b30fdb97951ff9 to your computer and use it in GitHub Desktop.
Save catehstn/9c04a9b30fdb97951ff9 to your computer and use it in GitHub Desktop.
- (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