| Index: ios/chrome/browser/ui/settings/passwords_settings_egtest.mm
|
| diff --git a/ios/chrome/browser/ui/settings/passwords_settings_egtest.mm b/ios/chrome/browser/ui/settings/passwords_settings_egtest.mm
|
| index b60fbb03a279548e6b86688e91e22d9d58433a35..d36f421e0a9546cd0459dee2dff55aebc214f43b 100644
|
| --- a/ios/chrome/browser/ui/settings/passwords_settings_egtest.mm
|
| +++ b/ios/chrome/browser/ui/settings/passwords_settings_egtest.mm
|
| @@ -46,6 +46,7 @@ using autofill::PasswordForm;
|
| using chrome_test_util::ButtonWithAccessibilityLabel;
|
| using chrome_test_util::ButtonWithAccessibilityLabelId;
|
| using chrome_test_util::NavigationBarDoneButton;
|
| +using chrome_test_util::SettingsMenuButton;
|
|
|
| namespace {
|
|
|
| @@ -54,11 +55,6 @@ namespace {
|
| // it too high could result in scrolling way past the searched element.
|
| constexpr int kScrollAmount = 150;
|
|
|
| -// Matcher for the Settings button in the tools menu.
|
| -id<GREYMatcher> SettingsButton() {
|
| - return grey_accessibilityID(kToolsMenuSettingsId);
|
| -}
|
| -
|
| // Matcher for the Save Passwords cell on the main Settings screen.
|
| id<GREYMatcher> PasswordsButton() {
|
| return ButtonWithAccessibilityLabelId(IDS_IOS_SAVE_PASSWORDS);
|
| @@ -287,7 +283,7 @@ id<GREYMatcher> CopyPasswordButton() {
|
| - (void)openPasswordSettings {
|
| // Open settings and verify data in the view controller.
|
| [ChromeEarlGreyUI openToolsMenu];
|
| - [[EarlGrey selectElementWithMatcher:SettingsButton()]
|
| + [[EarlGrey selectElementWithMatcher:SettingsMenuButton()]
|
| performAction:grey_tap()];
|
| [[EarlGrey selectElementWithMatcher:PasswordsButton()]
|
| performAction:grey_tap()];
|
|
|