GestureNav: Fix flaky tests
ChromeTabUtils.fullyLoadUrlInNewTab sometimes takes long to finish on Tablet. Replaced it with ActivityTestRule.loadUrl. What they do is different but doesn't matter for the goal of the tests as long as they load a given URL. Swiping left and immediately swiping right on rendered pages sometimes fails. This CL gives a bit of delay before the second swiping starts for the gesture navigation to be ready. The tests for left swipe were removed, since those testing right swipe also include left swipe. Tested locally on Nexus 7. Bug: 1041233, 1051221 Change-Id: I4bf866f2521c02b3c4500d47776ba80fdea91ac7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2125914 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by:Donn Denman <donnd@chromium.org> Cr-Commit-Position: refs/heads/master@{#756075}
Showing
Please register or sign in to comment