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

Unified Diff: ios/chrome/browser/ui/toolbar/toolbar_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/ui/toolbar/toolbar_egtest.mm
diff --git a/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm b/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm
index 20370738f5094270dcab00e28aea35ff8a160436..217a67a7ff5c2d2cd48786ff7c5cb6a8b3560d8c 100644
--- a/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm
+++ b/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm
@@ -32,7 +32,6 @@
using chrome_test_util::ButtonWithAccessibilityLabelId;
using chrome_test_util::OmniboxText;
-using chrome_test_util::WebViewContainingText;
// Toolbar integration tests for Chrome.
@interface ToolbarTestCase : ChromeTestCase
@@ -78,8 +77,7 @@ void SelectNewTabPagePanel(NewTabPage::PanelIdentifier panel_type) {
[ChromeEarlGrey loadURL:URL];
[[EarlGrey selectElementWithMatcher:OmniboxText(URL.GetContent())]
assertWithMatcher:grey_notNil()];
- [[EarlGrey selectElementWithMatcher:WebViewContainingText("You've arrived")]
- assertWithMatcher:grey_notNil()];
+ [ChromeEarlGrey waitForWebViewContainingText:@"You've arrived"];
}
// Verifies opening a new tab from the tools menu.

Powered by Google App Engine
This is Rietveld 408576698