feat: animate hovered chapter titles and active seek segments
This commit is contained in:
@@ -163,6 +163,10 @@ struct ResolvedPlaybackCheck {
|
||||
!model.isBusy && model.state.status == PLAYER_PLAYING && model.state.position > 0.2
|
||||
}
|
||||
requireYouTubeChapters(model, expected, "direct openStream")
|
||||
require(model.sliderSegmentTitle(at: 0.5) == (url == chaptered ? "Opening" : nil) &&
|
||||
model.sliderSegmentTitle(at: 1.25) == (url == chaptered ? "Ending" : nil) &&
|
||||
model.sliderSegmentTitle(at: 2.5) == nil,
|
||||
"hover names match the chapter under the pointer, with no invented gap names")
|
||||
require(model.state.duration < 500, "native duration rejects chapter edges beyond measured media")
|
||||
require(model.setPlayback(playing: false), "pause before saving chapter playback")
|
||||
try await until("chapter playback paused", model: model) { model.state.status == PLAYER_PAUSED }
|
||||
|
||||
Reference in New Issue
Block a user