Commit 0c7f2b4e authored by David Jean's avatar David Jean Committed by Commit Bot

[ios] Fix Translate tests for Multi-Window

For some reason in MW, going down 200 makes it 'Translate'
visible but un-tappable. This CL adds 50 more unit down,

Bug: 1108400
Change-Id: I9ba2f910e45b70d977eac1013e6566baf271e70e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335283
Commit-Queue: Mark Cogan <marq@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Auto-Submit: David Jean <djean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795880}
parent 52b634e1
......@@ -1457,7 +1457,7 @@ void TestResponseProvider::GetLanguageResponse(
// Make sure the Translate manual trigger button is enabled and tap it.
[ChromeEarlGreyUI openToolsMenu];
[[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()]
assertWithMatcher:grey_not(grey_accessibilityTrait(
UIAccessibilityTraitNotEnabled))]
......@@ -1482,7 +1482,7 @@ void TestResponseProvider::GetLanguageResponse(
// Make sure the Translate manual trigger button is enabled and tap it.
[ChromeEarlGreyUI openToolsMenu];
[[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()]
assertWithMatcher:grey_not(grey_accessibilityTrait(
UIAccessibilityTraitNotEnabled))]
......@@ -1546,7 +1546,7 @@ void TestResponseProvider::GetLanguageResponse(
// Tap the Translate manual trigger button.
[ChromeEarlGreyUI openToolsMenu];
[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()] performAction:grey_tap()];
// Make sure the infobar reappears.
......@@ -1599,7 +1599,7 @@ void TestResponseProvider::GetLanguageResponse(
// Tap the Translate manual trigger button.
[ChromeEarlGreyUI openToolsMenu];
[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()] performAction:grey_tap()];
// Make sure the infobar reappears.
......
......@@ -996,7 +996,7 @@ void TestResponseProvider::GetLanguageResponse(
[[[[EarlGrey selectElementWithMatcher:grey_allOf(grey_accessibilityID(
kToolsMenuTranslateId),
grey_interactable(), nil)]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200)
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:chrome_test_util::ToolsMenuView()]
assertWithMatcher:grey_not(grey_accessibilityTrait(
UIAccessibilityTraitNotEnabled))]
......
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