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..25442e63258f8c3d15ba2d5de0b6c00d5c782935 100644 |
--- a/ios/chrome/browser/ui/history/history_ui_egtest.mm |
+++ b/ios/chrome/browser/ui/history/history_ui_egtest.mm |
@@ -42,6 +42,7 @@ |
#endif |
using chrome_test_util::ButtonWithAccessibilityLabelId; |
+using chrome_test_util::OpenLinkInNewTabMenuItem; |
using chrome_test_util::WebViewContainingText; |
namespace { |
@@ -115,10 +116,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 +427,7 @@ void MockSignIn() { |
// Select "Open in New Tab" and confirm that new tab is opened with selected |
// URL. |
- [[EarlGrey selectElementWithMatcher:OpenInNewTabButton()] |
+ [[EarlGrey selectElementWithMatcher:OpenLinkInNewTabMenuItem()] |
performAction:grey_tap()]; |
[[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText( |
_URL1.GetContent())] |