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

Unified Diff: ios/chrome/browser/ui/print/print_controller_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/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];
}

Powered by Google App Engine
This is Rietveld 408576698