From 8013cc97bbb2874d200c555e8f639837fbbfc9c8 Mon Sep 17 00:00:00 2001 From: Siddharth Date: Sun, 5 Apr 2026 15:56:28 -0700 Subject: [PATCH] fix: remove editor reload in e2e test that was clearing video state The reload was intended to ensure WebCodecs registered, but it clears the video path state set before the editor opened, causing the editor to load blank and the export to never complete. --- tests/e2e/gif-export.spec.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/e2e/gif-export.spec.ts b/tests/e2e/gif-export.spec.ts index a60fff2..8493f2e 100644 --- a/tests/e2e/gif-export.spec.ts +++ b/tests/e2e/gif-export.spec.ts @@ -95,13 +95,9 @@ test("exports a GIF from a loaded video", async () => { timeout: 15_000, }); - // WebCodecs (VideoEncoder) may not be registered in the renderer on first - // load of a second BrowserWindow. A single reload ensures the feature is - // fully initialized before we start encoding. - await editorWindow.reload(); await editorWindow.waitForLoadState("domcontentloaded"); await expect(editorWindow.getByText("Loading video...")).not.toBeVisible({ - timeout: 15_000, + timeout: 30_000, }); // ── 5. Select GIF as the export format.