| Index: ios/chrome/browser/ui/dialogs/javascript_dialog_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/dialogs/javascript_dialog_egtest.mm b/ios/chrome/browser/ui/dialogs/javascript_dialog_egtest.mm
|
| index 17a8f0d00f5b10c197ae5e287127ab0335c68c4b..daed6bae138f37626f0aa27fbc190b586bc3b710 100644
|
| --- a/ios/chrome/browser/ui/dialogs/javascript_dialog_egtest.mm
|
| +++ b/ios/chrome/browser/ui/dialogs/javascript_dialog_egtest.mm
|
| @@ -30,6 +30,8 @@
|
| #error "This file requires ARC support."
|
| #endif
|
|
|
| +using chrome_test_util::NavigationBarDoneButton;
|
| +
|
| namespace {
|
|
|
| // Enum specifying different types of JavaScript alerts:
|
| @@ -458,9 +460,7 @@ void TapSuppressDialogsButton() {
|
| AssertJavaScriptAlertNotPresent();
|
|
|
| // Close the settings.
|
| - [[EarlGrey
|
| - selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId(
|
| - IDS_IOS_NAVIGATION_BAR_DONE_BUTTON)]
|
| + [[EarlGrey selectElementWithMatcher:NavigationBarDoneButton()]
|
| performAction:grey_tap()];
|
|
|
| // Make sure the alert is present.
|
|
|