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( ...@@ -1457,7 +1457,7 @@ void TestResponseProvider::GetLanguageResponse(
// Make sure the Translate manual trigger button is enabled and tap it. // Make sure the Translate manual trigger button is enabled and tap it.
[ChromeEarlGreyUI openToolsMenu]; [ChromeEarlGreyUI openToolsMenu];
[[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()] [[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200) usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()] onElementWithMatcher:ToolsMenuView()]
assertWithMatcher:grey_not(grey_accessibilityTrait( assertWithMatcher:grey_not(grey_accessibilityTrait(
UIAccessibilityTraitNotEnabled))] UIAccessibilityTraitNotEnabled))]
...@@ -1482,7 +1482,7 @@ void TestResponseProvider::GetLanguageResponse( ...@@ -1482,7 +1482,7 @@ void TestResponseProvider::GetLanguageResponse(
// Make sure the Translate manual trigger button is enabled and tap it. // Make sure the Translate manual trigger button is enabled and tap it.
[ChromeEarlGreyUI openToolsMenu]; [ChromeEarlGreyUI openToolsMenu];
[[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()] [[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200) usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()] onElementWithMatcher:ToolsMenuView()]
assertWithMatcher:grey_not(grey_accessibilityTrait( assertWithMatcher:grey_not(grey_accessibilityTrait(
UIAccessibilityTraitNotEnabled))] UIAccessibilityTraitNotEnabled))]
...@@ -1546,7 +1546,7 @@ void TestResponseProvider::GetLanguageResponse( ...@@ -1546,7 +1546,7 @@ void TestResponseProvider::GetLanguageResponse(
// Tap the Translate manual trigger button. // Tap the Translate manual trigger button.
[ChromeEarlGreyUI openToolsMenu]; [ChromeEarlGreyUI openToolsMenu];
[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()] [[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200) usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()] performAction:grey_tap()]; onElementWithMatcher:ToolsMenuView()] performAction:grey_tap()];
// Make sure the infobar reappears. // Make sure the infobar reappears.
...@@ -1599,7 +1599,7 @@ void TestResponseProvider::GetLanguageResponse( ...@@ -1599,7 +1599,7 @@ void TestResponseProvider::GetLanguageResponse(
// Tap the Translate manual trigger button. // Tap the Translate manual trigger button.
[ChromeEarlGreyUI openToolsMenu]; [ChromeEarlGreyUI openToolsMenu];
[[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()] [[[EarlGrey selectElementWithMatcher:toolsMenuTranslateButton()]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200) usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:ToolsMenuView()] performAction:grey_tap()]; onElementWithMatcher:ToolsMenuView()] performAction:grey_tap()];
// Make sure the infobar reappears. // Make sure the infobar reappears.
......
...@@ -996,7 +996,7 @@ void TestResponseProvider::GetLanguageResponse( ...@@ -996,7 +996,7 @@ void TestResponseProvider::GetLanguageResponse(
[[[[EarlGrey selectElementWithMatcher:grey_allOf(grey_accessibilityID( [[[[EarlGrey selectElementWithMatcher:grey_allOf(grey_accessibilityID(
kToolsMenuTranslateId), kToolsMenuTranslateId),
grey_interactable(), nil)] grey_interactable(), nil)]
usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 200) usingSearchAction:grey_scrollInDirection(kGREYDirectionDown, 250)
onElementWithMatcher:chrome_test_util::ToolsMenuView()] onElementWithMatcher:chrome_test_util::ToolsMenuView()]
assertWithMatcher:grey_not(grey_accessibilityTrait( assertWithMatcher:grey_not(grey_accessibilityTrait(
UIAccessibilityTraitNotEnabled))] 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