Fix a flaky download test
This CL fixes several reasons that cause the test to fail: 1. The test copies a file to sdcard, this will not work on Q and above. This CL will download a file first, so that it will always trigger the duplicate infobar 2. The new tab creation and going to the last tab are no longer working. This CL fixes it. 3. There are many infobars during the test. This Cl searches for the duplicate infobar instead of using the first infobar. BUG=606798 Change-Id: I29edd445231087022664c2ef887c8b2a701c8be0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454230Reviewed-by:Xing Liu <xingliu@chromium.org> Commit-Queue: Min Qin <qinmin@chromium.org> Cr-Commit-Position: refs/heads/master@{#814932}
Showing
Please register or sign in to comment