| Index: ios/chrome/browser/ui/settings/translate_ui_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/settings/translate_ui_egtest.mm b/ios/chrome/browser/ui/settings/translate_ui_egtest.mm
|
| index fee43dd602d6d6dab2c12c6a0505e1c5f7ea8f2e..ca6b7de4d97c96d64fdef51be1555456fb031b55 100644
|
| --- a/ios/chrome/browser/ui/settings/translate_ui_egtest.mm
|
| +++ b/ios/chrome/browser/ui/settings/translate_ui_egtest.mm
|
| @@ -14,6 +14,8 @@
|
| #import "ios/chrome/test/earl_grey/chrome_matchers.h"
|
| #import "ios/chrome/test/earl_grey/chrome_test_case.h"
|
|
|
| +using chrome_test_util::NavigationBarDoneButton;
|
| +
|
| namespace {
|
| // Displacement for scroll action.
|
| const CGFloat kScrollDisplacement = 50.0;
|
| @@ -68,9 +70,7 @@ const CGFloat kScrollDisplacement = 50.0;
|
| grey_accessibilityTrait(
|
| UIAccessibilityTraitButton),
|
| nil)] performAction:grey_tap()];
|
| - [[EarlGrey
|
| - selectElementWithMatcher:chrome_test_util::ButtonWithAccessibilityLabelId(
|
| - IDS_IOS_NAVIGATION_BAR_DONE_BUTTON)]
|
| + [[EarlGrey selectElementWithMatcher:NavigationBarDoneButton()]
|
| performAction:grey_tap()];
|
| }
|
|
|
|
|