De-flaky StartSurfaceLayoutTest#testNewTabTile
Based on the error information on bots, this flaky is due to catching multiple views with id new_tab_tile in view hierarchy. This could be because during tab model switching, the check happens when the tab list recyclerView is still updating, and new tab tiles for both models are all in the view hierarchy at that moment. This CL fixes this issue by adding a wait after tab model switch to make sure the recyclerView is stable, and move the TabCountAssertion check earlier to give better error information if the test is still flaky. Bug: 1051961 Change-Id: I18181046f76a6cb60096140d5343cdb913bd6ce3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135951Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#756878}
Showing
Please register or sign in to comment