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

Unified Diff: ios/chrome/browser/context_menu/context_menu_egtest.mm

Issue 2798773002: Create ChromeEarlGrey waitForWebViewContainingText. (Closed)
Patch Set: better formatting Created 3 years, 8 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
Index: ios/chrome/browser/context_menu/context_menu_egtest.mm
diff --git a/ios/chrome/browser/context_menu/context_menu_egtest.mm b/ios/chrome/browser/context_menu/context_menu_egtest.mm
index 5de3cd5a817374574b9fe27a55846b516bc9af61..9d12bd7b5a2187983113e7004e479e0b3db7358e 100644
--- a/ios/chrome/browser/context_menu/context_menu_egtest.mm
+++ b/ios/chrome/browser/context_menu/context_menu_egtest.mm
@@ -224,9 +224,8 @@ void SelectTabAtIndexInCurrentMode(NSUInteger index) {
chrome_test_util::GetCurrentWebState())]
performAction:grey_scrollToContentEdge(kGREYContentEdgeBottom)];
- [[EarlGrey selectElementWithMatcher:chrome_test_util::WebViewContainingText(
- kDestinationLinkID)]
- assertWithMatcher:grey_notNil()];
+ [ChromeEarlGrey
+ waitForWebViewContainingText:base::SysUTF8ToNSString(kDestinationLinkID)];
LongPressElementAndTapOnButton(kDestinationLinkID, OpenLinkInNewTabButton());

Powered by Google App Engine
This is Rietveld 408576698