diff --git a/packages/core/src/runtime/init.reloadedVideoKeepsPlayhead.test.ts b/packages/core/src/runtime/init.reloadedVideoKeepsPlayhead.test.ts index 9cb3f1f359..64b67e7c9c 100644 --- a/packages/core/src/runtime/init.reloadedVideoKeepsPlayhead.test.ts +++ b/packages/core/src/runtime/init.reloadedVideoKeepsPlayhead.test.ts @@ -80,7 +80,8 @@ it("leaves a render's videos to the render", () => { expect(clip.currentTime).toBe(0); }); -/** The film's shape: 10 scenes of 20 timed lines, 14 videos; scene 3's first video reloads `into` s in. */ +/** The film's shape: 4 scenes of 4 timed lines, 8 videos; scene 3's first video reloads `into` s in. Small enough + to run well inside the test timeout on a busy CI runner; any re-decided other clip still shows in `otherClips`. */ function reloadInLongFilm(into: number) { resetRuntimeFixtureDom(); const videos = (s: number, count: number) => @@ -89,9 +90,9 @@ function reloadInLongFilm(into: number) { (_, v) => ``, ).join(""); - const scenes = Array.from({ length: 10 }, (_, s) => { + const scenes = Array.from({ length: 4 }, (_, s) => { const lines = Array.from( - { length: 20 }, + { length: 4 }, (_, k) => `
${k}
`, ).join(""); return ( @@ -99,9 +100,9 @@ function reloadInLongFilm(into: number) { `${lines}${videos(s, s < 4 ? 2 : 1)}` ); }).join(""); - document.body.innerHTML = `
${scenes}
`; + document.body.innerHTML = `
${scenes}
`; document.querySelectorAll("video").forEach(loadedVideo); - window.__timelines = { main: createMockTimeline(1410) }; + window.__timelines = { main: createMockTimeline(564) }; initSandboxRuntimeModular(); window.__player!.seek(3 * 141 + 10 + into); const reloaded = document.getElementById("v3-0") as HTMLVideoElement;