Commit bf93c9b4 authored by Mike Dougherty's avatar Mike Dougherty Committed by Commit Bot

[iOS] Search for payment methods autofill setting

On small devices, the "Payment Methods" row in settings may require
scrolling the settings table in order to make it visible. Add a scroll
down search action to scroll the settings table until the row is found.

Change-Id: If4ff25908e117521236c01eca1d61ca8e61ba256
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412249
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Auto-Submit: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807081}
parent 06821286
......@@ -93,9 +93,11 @@ id<GREYMatcher> BottomToolbar() {
// Helper to open the settings page for Autofill credit cards.
- (void)openCreditCardsSettings {
[ChromeEarlGreyUI openSettingsMenu];
[[EarlGrey selectElementWithMatcher:ButtonWithAccessibilityLabel(
l10n_util::GetNSString(
IDS_AUTOFILL_PAYMENT_METHODS))]
[[[EarlGrey selectElementWithMatcher:ButtonWithAccessibilityLabel(
l10n_util::GetNSString(
IDS_AUTOFILL_PAYMENT_METHODS))]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
onElementWithMatcher:chrome_test_util::SettingsCollectionView()]
performAction:grey_tap()];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment