AW: deflake Safe Browsing tests
No change to production logic. This aims to deflake SafeBrowsingTest#testSafeBrowsingDontProceedNavigatesBackFor*. These tests previously depended on the interstitial to change the page title to the string "Security error." This is unreliable, however, as chromium translates this for non-English locales. This CL removes the dependency on page title, and asserts that the previous page is visible after clicking "back to safety." I couldn't locally reproduce test failures except by changing device locale, but I expect this method to be more robust than relying on page title. As mentioned below, I tested this ~200 times without failure, so I don't expect many flakes. This also removes the @FlakyTest annotation previously added. Bug: 822753 Test: run_webview_instrumentation_test_apk -f SafeBrowsingTest#testSafeBrowsingDontProceedNavigatesBackFor* Change-Id: I91ded411514302c2c34fdb8e06f7694f58f7e526 Reviewed-on: https://chromium-review.googlesource.com/1013686Reviewed-by:Bo <boliu@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#551173}
Showing
Please register or sign in to comment