Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
- (void)testShare {
[[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 *editNavigationBar = app_.navigationBars[@"Edit"];
[editNavigationBar.buttons[@"share"] tap];
[[[app_ sheets] buttons][@"Cancel"] tap];
// 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
You can’t perform that action at this time.