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

Unified Diff: ios/web/shell/test/earl_grey/shell_earl_grey.mm

Issue 2665423002: Update web shell app to not load dev.chromium.org on launch. (Closed)
Patch Set: 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
Index: ios/web/shell/test/earl_grey/shell_earl_grey.mm
diff --git a/ios/web/shell/test/earl_grey/shell_earl_grey.mm b/ios/web/shell/test/earl_grey/shell_earl_grey.mm
index 17c55d91dc39ed5f36ad86b2149535e99b0e56cc..bdf8f1b47face21f3577251265b48677eb79864c 100644
--- a/ios/web/shell/test/earl_grey/shell_earl_grey.mm
+++ b/ios/web/shell/test/earl_grey/shell_earl_grey.mm
@@ -34,6 +34,10 @@
web::WebState* webState = web::shell_test_util::GetCurrentWebState();
if (webState->ContentIsHTML())
web::WaitUntilWindowIdInjected(webState);
+
+ // Ensure any UI elements handled by EarlGrey become idle for any subsequent
+ // EarlGrey steps.
+ [[GREYUIThreadExecutor sharedInstance] drainUntilIdle];
}
@end

Powered by Google App Engine
This is Rietveld 408576698