From 34f98e6a04e572296e314485d8e2f330edb0ca69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Tue, 17 Nov 2026 11:53:32 +0000 Subject: [PATCH] test(core): the reloaded-video playhead test builds a smaller film so busy CI never times it out (#8069) * test(core): the reloaded-video playhead test builds a smaller film so busy CI never times it out * test(core): keep the playhead fixture note inside the comment line limit --- .../runtime/init.reloadedVideoKeepsPlayhead.test.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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;