Index: ios/chrome/browser/ui/history/history_ui_egtest.mm |
diff --git a/ios/chrome/browser/ui/history/history_ui_egtest.mm b/ios/chrome/browser/ui/history/history_ui_egtest.mm |
index 02c6255542d3645a8423731661348401be7c8ef9..14ce2caffb3e8efdfc4da7c29fb4b3e87b2991ad 100644 |
--- a/ios/chrome/browser/ui/history/history_ui_egtest.mm |
+++ b/ios/chrome/browser/ui/history/history_ui_egtest.mm |
@@ -115,10 +115,6 @@ id<GREYMatcher> OpenClearBrowsingDataButton() { |
return ButtonWithAccessibilityLabelId( |
IDS_HISTORY_OPEN_CLEAR_BROWSING_DATA_DIALOG); |
} |
-// Matcher for the Open in New Tab option in the context menu. |
-id<GREYMatcher> OpenInNewTabButton() { |
- return ButtonWithAccessibilityLabelId(IDS_IOS_CONTENT_CONTEXT_OPENLINKNEWTAB); |
-} |
// Matcher for the Open in New Incognito Tab option in the context menu. |
id<GREYMatcher> OpenInNewIncognitoTabButton() { |
return ButtonWithAccessibilityLabelId( |
@@ -430,7 +426,8 @@ void MockSignIn() { |
// Select "Open in New Tab" and confirm that new tab is opened with selected |
// URL. |
- [[EarlGrey selectElementWithMatcher:OpenInNewTabButton()] |
+ [[EarlGrey |
+ selectElementWithMatcher:chrome_test_util::OpenLinkInNewTabMenuItem()] |
Eugene But (OOO till 7-30)
2017/03/06 20:10:04
ditto
baxley
2017/03/06 20:53:34
Done.
|
performAction:grey_tap()]; |
[[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( |
_URL1.GetContent())] |