[iOS] Only verify error code when link tapping fails.
The behavior of TapWebViewElementWithId() for links that close a WebState is flaky on both simulator and device, regardless of whether the Phase 1 UI Reboot flag is enabled. This CL updates FullscreenTestCase.testShowHeaderWhenChildTabCloses to check for the error code only if the link tap is unsuccessful. Note that the closure of the Tab and the visibility of the toolbar is still verified after this occurs, so the test will still catch fullscreen regressions after this change. Bug: 812664 Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs Change-Id: Ia56293763e185eeb615a5f734aa9a3a473f0b424 Reviewed-on: https://chromium-review.googlesource.com/974791 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Reviewed-by:
Justin Cohen <justincohen@chromium.org> Cr-Commit-Position: refs/heads/master@{#545713}
Showing
Please register or sign in to comment