Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/contracts/timelineWorkflow.ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ for(const width of [390,1440]) {
await page.locator('#play-button').click();
await expect.poll(()=>video.evaluate(v=>(v as HTMLVideoElement).currentSrc)).toContain('/1001?');
await expect.poll(()=>video.evaluate(v=>(v as HTMLVideoElement).paused)).toBe(false);
// paused flips as soon as play() is requested; the player seeks to the cursor once the
// new segment's metadata loads, so only jump near its end after playback is under way.
await expect.poll(()=>video.evaluate(v=>{const e=v as HTMLVideoElement;return e.readyState>=2&&e.currentTime>0;})).toBe(true);
await video.evaluate(v=>{(v as HTMLVideoElement).currentTime=29.8;});
await expect.poll(()=>video.evaluate(v=>(v as HTMLVideoElement).currentSrc)).toContain('/1002?');
await expect.poll(()=>video.evaluate(v=>(v as HTMLVideoElement).paused)).toBe(false);
Expand Down
Loading