Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Unified Diff: ios/chrome/test/earl_grey/chrome_matchers.mm

Issue 2733973002: Create shared matcher for navigation bar done button. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_matchers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/test/earl_grey/chrome_matchers.mm
diff --git a/ios/chrome/test/earl_grey/chrome_matchers.mm b/ios/chrome/test/earl_grey/chrome_matchers.mm
index bf7833c9c31efeb93ed9c42f37f6a7a95fcc638e..86bc5136cc450c55b383ecc4f1e9b517c633902f 100644
--- a/ios/chrome/test/earl_grey/chrome_matchers.mm
+++ b/ios/chrome/test/earl_grey/chrome_matchers.mm
@@ -231,4 +231,10 @@ id<GREYMatcher> OpenLinkInNewTabMenuItem() {
return ButtonWithAccessibilityLabelId(IDS_IOS_CONTENT_CONTEXT_OPENLINKNEWTAB);
}
+id<GREYMatcher> NavigationBarDoneButton() {
+ return grey_allOf(
+ ButtonWithAccessibilityLabelId(IDS_IOS_NAVIGATION_BAR_DONE_BUTTON),
+ grey_sufficientlyVisible(), nil);
Eugene But (OOO till 7-30) 2017/03/07 02:56:41 I just noticed that some matchers have |grey_suffi
baxley 2017/03/07 15:28:33 There was one at least one test that needed it, so
Eugene But (OOO till 7-30) 2017/03/07 16:33:31 Thanks! Could you please file a bug to fix other m
+}
+
} // namespace chrome_test_util
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_matchers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698