From b243377797672acbf7ca56ea92f39a1e27477770 Mon Sep 17 00:00:00 2001 From: "Claude (RC validation pass)" Date: Sun, 19 Jul 2026 21:16:34 +0200 Subject: [PATCH] fix(test): repair windows-native-checklist.spec.ts's broken open-video/open-project flow Fixes #130. Two tests referenced hudWindow testids (launch-open-video-button, launch-open-project-button) that don't exist anywhere in LaunchWindow.tsx -- the spec self-skips off-Windows and CI is Linux-only, so this had never actually been caught by a real run. - Add data-testid to EditorEmptyState's Import Video File / Load Project buttons (previously untestable, no selector at all). - Route both tests through the real flow: HUD "Open Studio" -> editor empty state -> the new testids. - Fix the getCurrentVideoPath mock in the load-project test: it stubbed a video as already current, which made VideoEditor skip past EditorEmptyState entirely once the flow went through it (real bug in the mock, exposed by fixing the navigation path). - Two more bugs the same execution gap let through, fixed while verifying locally: a strict-mode-violating "Background" text locator matching two elements, and an assertion on the export button before ever opening the export panel that renders it. Verified locally on macOS by temporarily bypassing the win32-only skip: both previously-broken tests now pass end-to-end (build-vite + playwright test tests/e2e/windows-native-checklist.spec.ts). --- src/components/video-editor/EditorEmptyState.tsx | 2 ++ tests/e2e/windows-native-checklist.spec.ts | 15 +++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/video-editor/EditorEmptyState.tsx b/src/components/video-editor/EditorEmptyState.tsx index 2a5c49547..3b7bd773c 100644 --- a/src/components/video-editor/EditorEmptyState.tsx +++ b/src/components/video-editor/EditorEmptyState.tsx @@ -180,6 +180,7 @@ export function EditorEmptyState({ onVideoImported, onProjectOpened }: EditorEmp