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

Unified Diff: ios/chrome/browser/autofill/form_input_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/autofill/form_input_egtest.mm
diff --git a/ios/chrome/browser/autofill/form_input_egtest.mm b/ios/chrome/browser/autofill/form_input_egtest.mm
index a04c5a0b3ba4ea86e76b5a57d099dbcae20f1d1f..c42cf5a373f19bfc93fea75874045a0c83f97098 100644
--- a/ios/chrome/browser/autofill/form_input_egtest.mm
+++ b/ios/chrome/browser/autofill/form_input_egtest.mm
@@ -83,10 +83,7 @@ void AssertElementIsFocused(const std::string& element_id) {
"http://ios/testing/data/http_server_files/multi_field_form.html");
[ChromeEarlGrey loadURL:URL];
- id<GREYMatcher> webViewMatcher =
- chrome_test_util::WebViewContainingText("hello!");
- [[EarlGrey selectElementWithMatcher:webViewMatcher]
- assertWithMatcher:grey_notNil()];
+ [ChromeEarlGrey waitForWebViewContainingText:@"hello"];
// Opening the keyboard from a webview blocks EarlGrey's synchronization.
[[GREYConfiguration sharedInstance]

Powered by Google App Engine
This is Rietveld 408576698