| Index: ios/chrome/browser/web/stop_loading_egtest.mm
|
| diff --git a/ios/chrome/browser/web/stop_loading_egtest.mm b/ios/chrome/browser/web/stop_loading_egtest.mm
|
| index 61c832ca6f8cc278541475e51a4fb1565f8987f4..dba1235d0823f12959dcf43dac168d5bc9e98bbb 100644
|
| --- a/ios/chrome/browser/web/stop_loading_egtest.mm
|
| +++ b/ios/chrome/browser/web/stop_loading_egtest.mm
|
| @@ -6,9 +6,11 @@
|
|
|
| #include "base/memory/ptr_util.h"
|
| #include "base/strings/stringprintf.h"
|
| +#include "base/strings/sys_string_conversions.h"
|
| #include "base/time/time.h"
|
| #include "ios/chrome/browser/ui/ui_util.h"
|
| #include "ios/chrome/test/app/navigation_test_util.h"
|
| +#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
|
| #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
|
| #import "ios/chrome/test/earl_grey/chrome_matchers.h"
|
| #import "ios/chrome/test/earl_grey/chrome_test_case.h"
|
| @@ -18,7 +20,6 @@
|
| #include "url/gurl.h"
|
|
|
| using chrome_test_util::ButtonWithAccessibilityLabelId;
|
| -using chrome_test_util::WebViewContainingText;
|
|
|
| namespace {
|
|
|
| @@ -102,8 +103,8 @@ class InfinitePendingResponseProvider : public HtmlResponseProvider {
|
| }
|
|
|
| // Wait until the page is half loaded.
|
| - [[EarlGrey selectElementWithMatcher:WebViewContainingText(kPageText)]
|
| - assertWithMatcher:grey_notNil()];
|
| + [ChromeEarlGrey
|
| + waitForWebViewContainingText:base::SysUTF8ToNSString(kPageText)];
|
|
|
| // On iPhone Stop/Reload button is a part of tools menu, so open it.
|
| if (!IsIPadIdiom()) {
|
|
|