Fix CommandsApiTest flakiness for SingleProcessMash
This CL fixes CommandsApiTest.PageActionOverrideChromeShortcut flakiness. This is flaky because the focus of view (OmniboxViewViews in this case) is asynchronous in Mash, it gets done asynchronously after ctrl-l is marked as processed. And actually InputMethodMus marks keyevents before focus (pending keyevents) as done without processing (see https://chromium.googlesource.com/chromium/src/+/master/ui/aura/mus/input_method_mus.cc#172) Considering the test scenario, I believe the test case should wait for the omnibox getting focused. BUG=894911 TEST=interactive_ui_tests --enable-features=SingleProcessMash Change-Id: I1e64370924be606badd44ec9fd99c4a39759d28a Reviewed-on: https://chromium-review.googlesource.com/c/1281907Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Jun Mukai <mukai@chromium.org> Cr-Commit-Position: refs/heads/master@{#600197}
Showing
Please register or sign in to comment