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

Unified Diff: ios/chrome/browser/ui/find_bar/find_in_page_egtest.mm

Issue 2798773002: Create ChromeEarlGrey waitForWebViewContainingText. (Closed)
Patch Set: more cleanup Created 3 years, 6 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/ui/find_bar/find_in_page_egtest.mm
diff --git a/ios/chrome/browser/ui/find_bar/find_in_page_egtest.mm b/ios/chrome/browser/ui/find_bar/find_in_page_egtest.mm
index 99f4769419cf35251ba16a43bc94f953bc669d6e..df1ba2a59ab3d0e53c2a573173ee5f18f6fb40bc 100644
--- a/ios/chrome/browser/ui/find_bar/find_in_page_egtest.mm
+++ b/ios/chrome/browser/ui/find_bar/find_in_page_egtest.mm
@@ -33,8 +33,6 @@ const std::string kFindInPageResponse = "Find in page. Find in page.";
} // namespace
-using chrome_test_util::WebViewContainingText;
-
// Tests for Find in Page.
@interface FindInPageTestCase : ChromeTestCase
@@ -223,9 +221,7 @@ using chrome_test_util::WebViewContainingText;
[ChromeEarlGrey loadURL:self.testURL];
// Verify web page finished loading.
- [[EarlGrey
- selectElementWithMatcher:WebViewContainingText(kFindInPageResponse)]
- assertWithMatcher:grey_notNil()];
+ [ChromeEarlGrey waitForWebViewContainingText:kFindInPageResponse];
}
@end

Powered by Google App Engine
This is Rietveld 408576698