Fix flakiness in AppMenuTest#testDragHelper_ClickItem
This test was flakily failing due to improper calculation of motion event x/y coordinates. An animatioin runs when the app menu is opened and ending it doesn't immediately result in the views reaching their resting position. This CL adds a wait for AppMenuDragHelper to be ready for menu item actions and retrieves the View rect on the UI thread. 0 flakes in 120 runs locally. BUG=1062236 Change-Id: Ie7264fb23ceaf9e0b6653c7ca78c1b5d2bf555b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2121451Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#753694}
Showing
Please register or sign in to comment