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

Unified Diff: ios/chrome/browser/ui/toolbar/toolbar_egtest.mm

Issue 2617393003: [ios] EarlGrey tests for HTTP Authentication. (Closed)
Patch Set: Actually disabled tests on iPad 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/chrome/browser/ui/toolbar/toolbar_egtest.mm
diff --git a/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm b/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm
index 20ff4d12aaea5f524b0c8446d2dad21bf4e58c22..18bb8b3faae17f9b203f7a60e86c22844ffdb6eb 100644
--- a/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm
+++ b/ios/chrome/browser/ui/toolbar/toolbar_egtest.mm
@@ -125,10 +125,10 @@ void SelectNewTabPagePanel(NewTabPage::PanelIdentifier panel_type) {
[[EarlGrey selectElementWithMatcher:chrome_test_util::omnibox()]
performAction:grey_typeText(@"foo")];
- id<GREYMatcher> CancelButton =
- grey_allOf(chrome_test_util::buttonWithAccessibilityLabelId(IDS_CANCEL),
+ id<GREYMatcher> cancelButton =
+ grey_allOf(chrome_test_util::cancelButton(),
grey_not(grey_accessibilityID(@"Typing Shield")), nil);
- [[EarlGrey selectElementWithMatcher:CancelButton] performAction:grey_tap()];
+ [[EarlGrey selectElementWithMatcher:cancelButton] performAction:grey_tap()];
[[EarlGrey selectElementWithMatcher:chrome_test_util::omnibox()]
assertWithMatcher:chrome_test_util::omniboxText(URL.GetContent())];

Powered by Google App Engine
This is Rietveld 408576698