Break AudioPlayerBrowserTest changeTracks into separate tests
Break test changeTracks into three separate tests, rather than do it all in one test. And hopefully, improve test speed and robustness by eliminating the interrupted play() -> pause() problem, which was due due to not waiting for the play button aria-label state change. changeTracks Clicks on the "next" button and tests that the "next" track plays. Move what was formerly in this test, to the new tests. changeTracksPlayList Expands the track list by clicking on the the play-list button and clicks track 0. Test that the expected audio track (0) plays. changeTracksPlayListIcon Expands the track list by clicking on the the play-list button and clicks the track 1 'Play' icon. Test that the expected audio track (1) plays. Add more comments to the togglePlayState and changeVolumeLevel tests and comments describing the new tests. Test: browser_tests --gtest_filter=AudioPlayerBrowserTest.ChangeTr* Bug: 835626 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ibfb771ab7b276fbb64e2f40c5d17221a95244d15 Reviewed-on: https://chromium-review.googlesource.com/1051306Reviewed-by:Naoki Fukino <fukino@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#557434}
Showing
Please register or sign in to comment