Commit 63944ed8 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Correct various failing tests on iPhone SE.

Tests needed a few calls to grey_scrollInDirection for the shorter screen.

Bug: 994233
Change-Id: Iee2128409e75d97ddbd6bbb2b907a50b90087090
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1756246
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#687340}
parent d2a49702
......@@ -91,7 +91,10 @@ using chrome_test_util::UnifiedConsentAddAccountButton;
id<GREYMatcher> settingsLinkMatcher =
grey_allOf(grey_kindOfClass([TransparentLinkButton class]),
grey_sufficientlyVisible(), nil);
[[EarlGrey selectElementWithMatcher:settingsLinkMatcher]
[[[EarlGrey selectElementWithMatcher:settingsLinkMatcher]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 150)
onElementWithMatcher:grey_accessibilityID(
kUnifiedConsentScrollViewIdentifier)]
performAction:grey_tap()];
}
......
......@@ -140,7 +140,9 @@ id<GREYMatcher> NavigationBarEditButton() {
[ChromeEarlGreyUI openSettingsMenu];
id<GREYMatcher> addressesButton =
ButtonWithAccessibilityLabelId(IDS_AUTOFILL_ADDRESSES_SETTINGS_TITLE);
[[EarlGrey selectElementWithMatcher:addressesButton]
[[[EarlGrey selectElementWithMatcher:addressesButton]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
onElementWithMatcher:grey_kindOfClass([UITableView class])]
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