| 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())];
|
|
|