Skip to content

Instantly share code, notes, and snippets.

Last active November 9, 2015 12:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
- (void)testChooseImageAndGoBack {
[[app_ buttons][[SHAStrings galleryButtonTitleString]] tap];
[[[app_ tables] buttons][@"Moments"] tap];
[[[app_ collectionViews] cells][@"Photo, Landscape, August 08, 2012, 7:52 PM"] tap];
[self verifyEditPageButtonsVisible];
// Go back to Home Page.
[[[[[app_ navigationBars][@"Edit"] childrenMatchingType:XCUIElementTypeButton]
matchingIdentifier:@"Back"] elementBoundByIndex:0] tap];
[self verifyHomePageButtons];
- (void)verifyEditPageButtonsVisible {
// Colors / Balance should be there.
XCUIElement *colors = [app_ staticTexts][[SHAStrings accuracySliderDescription]];
XCTAssertTrue([colors exists]);
XCTAssertTrue([colors isHittable]);
XCUIElement *balance = [app_ staticTexts][[SHAStrings toleranceSliderDescription]];
XCTAssertTrue([balance exists]);
XCTAssertTrue([balance isHittable]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment