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

Unified Diff: ios/chrome/browser/web/browsing_egtest.mm

Issue 2626143002: Add more criteria to wait until keyboard appears. (Closed)
Patch Set: fix GREYMatcher Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/browsing_egtest.mm
diff --git a/ios/chrome/browser/web/browsing_egtest.mm b/ios/chrome/browser/web/browsing_egtest.mm
index d7cbd57734b00bafedfa7a0ca6045e22c40aa1cf..367a9d8600ac281ea58a04a629251f37d856e22c 100644
--- a/ios/chrome/browser/web/browsing_egtest.mm
+++ b/ios/chrome/browser/web/browsing_egtest.mm
@@ -621,8 +621,9 @@ id<GREYMatcher> tabWithTitle(const std::string& tab_title) {
conditionWithName:@"Wait for the keyboard to show up."
block:^BOOL {
NSError* error = nil;
- [[EarlGrey
- selectElementWithMatcher:grey_accessibilityID(@"Go")]
+ id<GREYMatcher> keyboardGoButton = grey_allOf(
Eugene But (OOO till 7-30) 2017/01/11 22:15:12 Should this be a function instead of local variabl
Eugene But (OOO till 7-30) 2017/01/11 22:15:12 s/keyboardGoButton/keyboardGoButtonMatcher
gchatz 2017/01/11 22:28:41 I moved it to a method in case other places that i
gchatz 2017/01/11 22:28:41 Done with method.
+ grey_accessibilityID(@"Go"), grey_interactable(), nil);
+ [[EarlGrey selectElementWithMatcher:keyboardGoButton]
assertWithMatcher:grey_notNil()
error:&error];
return (error == nil);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698