Fix flaky AdsPLMO.AdFrameSizeInterventionMediaStatusPlayed
This test is flaking due to not waiting for resources to finish loading. Currently "AddMinimumAdResourceExpectation" only checks for resources reported as ads to be identified, rather than waiting for the resources to complete. This modifies the method to wait for complete ad resources. This change modifies the EvalJS call that plays the video to not have a user gesture so it is clear that the frame doesn't receive user activation. This is purely to provide clarity in the code and does not change the testing path. Flake analysis: https://analysis.chromium.org/p/chromium/flake-portal/analysis/culprit?key=ag9zfmZpbmRpdC1mb3ItbWVyQwsSDEZsYWtlQ3VscHJpdCIxY2hyb21pdW0vNGMxNmRkZDA1NmY4ZTE3NGMzOGQ1Zjg2Y2FiMGJkYjBjNzM5MzRmMww Change-Id: Ide73b6696610a134c4d0c5990d3a92685f1fc5b9 Reviewed-on: https://chromium-review.googlesource.com/c/1495674 Commit-Queue: John Delaney <johnidel@chromium.org> Reviewed-by:Charlie Harrison <csharrison@chromium.org> Cr-Commit-Position: refs/heads/master@{#636619}
Showing
Please register or sign in to comment