Mitigate ToolbarButtonIphTest flaky test.
Attempts to address the problem caused by https://crbug.com/1144328 by watching for browser controls change events and then manually re-trying the test body. This doesn't seem to be entirely foolproof, sometimes onControlsOffsetChanged() is not called and the IPH is still prematurely dismissed. However this seems to be very rare and it's not clear if the root cause is actually 1144328 or something else. Locally testing, testTabSwitcherButtonIph will sometimes fail after 20 runs, but sometimes pass 100 in a row. This should be good enough for the bots when they already use 3 attempts before marking failure. Hopefully this mitigation is only temporary. Bug: 1142979 Change-Id: I2b98da227d1f34ef49b20b6fe6f4c69f8e3a0737 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533201 Commit-Queue: Sky Malice <skym@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Wenyu Fu <wenyufu@chromium.org> Cr-Commit-Position: refs/heads/master@{#827300}
Showing
Please register or sign in to comment