| Index: ios/chrome/browser/ui/print/print_controller_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/print/print_controller_egtest.mm b/ios/chrome/browser/ui/print/print_controller_egtest.mm
|
| index c5f7987dfff5db4cdf3b6cb92d63a51af9d7229b..d6244425e354a7072c2a85313f3dde87a5a5adce 100644
|
| --- a/ios/chrome/browser/ui/print/print_controller_egtest.mm
|
| +++ b/ios/chrome/browser/ui/print/print_controller_egtest.mm
|
| @@ -6,9 +6,11 @@
|
| #import <UIKit/UIKit.h>
|
| #import <XCTest/XCTest.h>
|
|
|
| +#include "base/strings/sys_string_conversions.h"
|
| #import "ios/chrome/browser/ui/uikit_ui_util.h"
|
| #include "ios/chrome/grit/ios_strings.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"
|
| @@ -51,10 +53,8 @@ const char kHTMLURL[] = "http://test";
|
| web::test::SetUpSimpleHttpServer(responses);
|
|
|
| chrome_test_util::LoadUrl(url);
|
| - id<GREYMatcher> response1Matcher =
|
| - chrome_test_util::WebViewContainingText(response);
|
| - [[EarlGrey selectElementWithMatcher:response1Matcher]
|
| - assertWithMatcher:grey_notNil()];
|
| + [ChromeEarlGrey
|
| + waitForWebViewContainingText:base::SysUTF8ToNSString(response)];
|
|
|
| [self printCurrentPage];
|
| }
|
|
|