Skip to content

Instantly share code, notes, and snippets.

@catehstn
Created November 9, 2015 12:55
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/02a26edfdde4c68080fd to your computer and use it in GitHub Desktop.
Save catehstn/02a26edfdde4c68080fd to your computer and use it in GitHub Desktop.
- (void)testChangeImageFromEditPage {
[[app_ buttons][[SHAStrings galleryButtonTitleString]] tap];
[[[app_ tables] buttons][@"Moments"] tap];
[[[app_ collectionViews] cells][@"Photo, Landscape, August 08, 2012, 7:52 PM"] tap];
[self verifyEditPageButtonsVisible];
XCUIElement *navBar = [app_ navigationBars][[SHAStrings imageEditingViewControllerTitle]];
[[navBar buttons][[SHAStrings galleryButtonA11yLabel]] tap];
[[[app_ tables] buttons][@"Camera Roll"] tap];
[[[app_ collectionViews] cells][@"Photo, Landscape, March 12, 2011, 4:17 PM"] tap];
[self verifyEditPageButtonsVisible];
// Go back to Home Page.
[[[[[app_ navigationBars][@"Edit"] childrenMatchingType:XCUIElementTypeButton]
matchingIdentifier:@"Back"] elementBoundByIndex:0] tap];
[self verifyHomePageButtons];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment