From 15316d933b70a4337582ea82346c186081d91f1b Mon Sep 17 00:00:00 2001
From: Yusuf Mohsinally <463376+yusufm@users.noreply.github.com>
Date: Sun, 3 May 2026 14:30:02 -0700
Subject: [PATCH 1/2] Add MP4 Electron export e2e
---
playwright.config.ts | 1 +
src/components/video-editor/SettingsPanel.tsx | 1 +
src/hooks/useScreenRecorder.ts | 18 ++--
src/utils/getTestId.ts | 6 +-
tests/e2e/gif-export.spec.ts | 33 +++----
tests/e2e/helpers.ts | 67 +++++++++++++++
tests/e2e/mp4-export.spec.ts | 86 +++++++++++++++++++
7 files changed, 179 insertions(+), 33 deletions(-)
create mode 100644 tests/e2e/helpers.ts
create mode 100644 tests/e2e/mp4-export.spec.ts
diff --git a/playwright.config.ts b/playwright.config.ts
index d268975b8..53e7ef0c1 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -4,5 +4,6 @@ export default defineConfig({
testDir: "./tests/e2e",
timeout: 120_000, // GIF encoding is CPU-bound; give it room
retries: 0,
+ workers: 1,
reporter: "list",
});
diff --git a/src/components/video-editor/SettingsPanel.tsx b/src/components/video-editor/SettingsPanel.tsx
index 5cac57378..0db5deeab 100644
--- a/src/components/video-editor/SettingsPanel.tsx
+++ b/src/components/video-editor/SettingsPanel.tsx
@@ -1466,6 +1466,7 @@ export function SettingsPanel({