Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
test(e2e): drop the two stale checklist tests, clean their leftovers
Claude03bb87259850
diff --git a/src/components/ai-edition/EditorEmptyState.tsx b/src/components/ai-edition/EditorEmptyState.tsxindex ae656c85d..226171dca 100644--- a/src/components/ai-edition/EditorEmptyState.tsx+++ b/src/components/ai-edition/EditorEmptyState.tsx@@ -1,17 +1,14 @@-// Empty state for the new editor's preview.+// Empty state for the editor's preview.//-// Mirrors the legacy `EditorEmptyState` (import video + load project + drag-// drop) but on top of the project store: a "no project" branch offers-// `createProject` + `loadProject`, and a "has project, no asset" branch offers-// the file picker + load (for the rare user who already has a .openscreen-// project without media attached).+// Import video + load project + drag/drop on top of the project store: a+// "no project" branch offers `createProject` + `loadProject`, and a+// "has project, no asset" branch offers the file picker + load (for the rare+// user who already has a .openscreen project without media attached).//-// ponytail: keeps the existing copy from the legacy component and the same-// drag/drop affordance, but the actions map to project-store operations-// rather than the legacy `nativeBridgeClient.project.*` ones. The two editor-// shells will collapse once we have a single render path; until then the-// "open screen" feature lives here in the new UX and in the legacy-// `EditorEmptyState.tsx` for the deprecated editor.+// ponytail: the actions map to project-store operations rather than the+// `nativeBridgeClient.project.*` ones, which this shell no longer uses. The+// deprecated editor and its own `EditorEmptyState` were deleted in 1320121d,+// so this is the single render path for the feature.import { AlertCircle, Film, FolderOpen, Upload, X } from "lucide-react";import { useCallback, useRef, useState } from "react";diff --git a/src/i18n/locales/ar/launch.json b/src/i18n/locales/ar/launch.jsonindex ccfbe60e1..ec8dfad33 100644--- a/src/i18n/locales/ar/launch.json+++ b/src/i18n/locales/ar/launch.json@@ -6,8 +6,6 @@"cancelRecording": "إلغاء التسجيل","pauseRecording": "إيقاف التسجيل مؤقتاً","resumeRecording": "استئناف التسجيل",- "openVideoFile": "فتح ملف فيديو",- "openProject": "فتح مشروع","useVerticalTray": "استخدام الشريط العمودي","useHorizontalTray": "استخدام الشريط الأفقي","openStudio": "فتح الاستوديو",diff --git a/src/i18n/locales/en/launch.json b/src/i18n/locales/en/launch.jsonindex 8f7e8b7f5..5bbf83bc7 100644--- a/src/i18n/locales/en/launch.json+++ b/src/i18n/locales/en/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Cancel recording","pauseRecording": "Pause recording","resumeRecording": "Resume recording",- "openVideoFile": "Open video file",- "openProject": "Open project","useVerticalTray": "Use vertical tray","useHorizontalTray": "Use horizontal tray","openStudio": "Open Studio",diff --git a/src/i18n/locales/es/launch.json b/src/i18n/locales/es/launch.jsonindex ac0aa3cd1..8ac5c1811 100644--- a/src/i18n/locales/es/launch.json+++ b/src/i18n/locales/es/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Cancelar grabación","pauseRecording": "Pausar grabación","resumeRecording": "Reanudar grabación",- "openVideoFile": "Abrir archivo de video",- "openProject": "Abrir proyecto","useVerticalTray": "Usar bandeja vertical","useHorizontalTray": "Usar bandeja horizontal","openStudio": "Abrir Studio",diff --git a/src/i18n/locales/fr/launch.json b/src/i18n/locales/fr/launch.jsonindex 331e54c5a..39fd85159 100644--- a/src/i18n/locales/fr/launch.json+++ b/src/i18n/locales/fr/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Annuler l'enregistrement","pauseRecording": "Mettre en pause l'enregistrement","resumeRecording": "Reprendre l'enregistrement",- "openVideoFile": "Ouvrir un fichier vidéo",- "openProject": "Ouvrir un projet","useVerticalTray": "Utiliser la barre verticale","useHorizontalTray": "Utiliser la barre horizontale","openStudio": "Ouvrir le Studio",diff --git a/src/i18n/locales/it/launch.json b/src/i18n/locales/it/launch.jsonindex 118b4bdd0..fbc9815a5 100644--- a/src/i18n/locales/it/launch.json+++ b/src/i18n/locales/it/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Annulla registrazione","pauseRecording": "Metti in pausa registrazione","resumeRecording": "Riprendi registrazione",- "openVideoFile": "Apri file video",- "openProject": "Apri progetto","useVerticalTray": "Usa barra verticale","useHorizontalTray": "Usa barra orizzontale","openStudio": "Apri Studio",diff --git a/src/i18n/locales/ja-JP/launch.json b/src/i18n/locales/ja-JP/launch.jsonindex 6c69b0f16..96af49814 100644--- a/src/i18n/locales/ja-JP/launch.json+++ b/src/i18n/locales/ja-JP/launch.json@@ -6,8 +6,6 @@"cancelRecording": "録画をキャンセル","pauseRecording": "録画を一時停止","resumeRecording": "録画を再開",- "openVideoFile": "動画ファイルを開く",- "openProject": "プロジェクトを開く","useVerticalTray": "縦型トレイを使用","useHorizontalTray": "横型トレイを使用","openStudio": "スタジオを開く",diff --git a/src/i18n/locales/ko-KR/launch.json b/src/i18n/locales/ko-KR/launch.jsonindex 62bfc1e04..7068a9254 100644--- a/src/i18n/locales/ko-KR/launch.json+++ b/src/i18n/locales/ko-KR/launch.json@@ -6,8 +6,6 @@"cancelRecording": "녹화 취소","pauseRecording": "녹화 일시정지","resumeRecording": "녹화 재개",- "openVideoFile": "비디오 파일 열기",- "openProject": "프로젝트 열기","useVerticalTray": "세로 트레이 사용","useHorizontalTray": "가로 트레이 사용","openStudio": "스튜디오 열기",diff --git a/src/i18n/locales/pt-BR/launch.json b/src/i18n/locales/pt-BR/launch.jsonindex 8dd833584..59ab8ee57 100644--- a/src/i18n/locales/pt-BR/launch.json+++ b/src/i18n/locales/pt-BR/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Cancelar gravação","pauseRecording": "Pausar gravação","resumeRecording": "Retomar gravação",- "openVideoFile": "Abrir arquivo de vídeo",- "openProject": "Abrir projeto","useVerticalTray": "Usar bandeja vertical","useHorizontalTray": "Usar bandeja horizontal","openStudio": "Abrir Studio",diff --git a/src/i18n/locales/ru/launch.json b/src/i18n/locales/ru/launch.jsonindex 72d96c22d..666eed6d0 100644--- a/src/i18n/locales/ru/launch.json+++ b/src/i18n/locales/ru/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Отменить запись","pauseRecording": "Приостановить запись","resumeRecording": "Возобновить запись",- "openVideoFile": "Открыть видеофайл",- "openProject": "Открыть проект","useVerticalTray": "Использовать вертикальную панель","useHorizontalTray": "Использовать горизонтальную панель","openStudio": "Открыть студию",diff --git a/src/i18n/locales/tr/launch.json b/src/i18n/locales/tr/launch.jsonindex 025370d22..6af22058e 100644--- a/src/i18n/locales/tr/launch.json+++ b/src/i18n/locales/tr/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Kaydı iptal et","pauseRecording": "Kaydı duraklat","resumeRecording": "Kayda devam et",- "openVideoFile": "Video dosyası aç",- "openProject": "Proje aç","useVerticalTray": "Dikey araç çubuğunu kullan","useHorizontalTray": "Yatay araç çubuğunu kullan","openStudio": "Stüdyoyu aç",diff --git a/src/i18n/locales/vi/launch.json b/src/i18n/locales/vi/launch.jsonindex c76651888..ed3a9af86 100644--- a/src/i18n/locales/vi/launch.json+++ b/src/i18n/locales/vi/launch.json@@ -6,8 +6,6 @@"cancelRecording": "Hủy ghi hình","pauseRecording": "Tạm dừng ghi hình","resumeRecording": "Tiếp tục ghi hình",- "openVideoFile": "Mở tệp video",- "openProject": "Mở dự án","useVerticalTray": "Dùng khay dọc","useHorizontalTray": "Dùng khay ngang","openStudio": "Mở Studio",diff --git a/src/i18n/locales/zh-CN/launch.json b/src/i18n/locales/zh-CN/launch.jsonindex c8c8aa348..5c7022844 100644--- a/src/i18n/locales/zh-CN/launch.json+++ b/src/i18n/locales/zh-CN/launch.json@@ -6,8 +6,6 @@"cancelRecording": "取消录制","pauseRecording": "暂停录制","resumeRecording": "继续录制",- "openVideoFile": "打开视频文件",- "openProject": "打开项目","useVerticalTray": "使用竖向托盘","useHorizontalTray": "使用横向托盘","openStudio": "打开工作室",diff --git a/src/i18n/locales/zh-TW/launch.json b/src/i18n/locales/zh-TW/launch.jsonindex 0fa9f6720..7e00991f7 100644--- a/src/i18n/locales/zh-TW/launch.json+++ b/src/i18n/locales/zh-TW/launch.json@@ -6,8 +6,6 @@"cancelRecording": "取消錄製","pauseRecording": "暫停錄製","resumeRecording": "繼續錄製",- "openVideoFile": "開啟影片檔案",- "openProject": "開啟專案","useVerticalTray": "使用直向托盤","useHorizontalTray": "使用橫向托盤","openStudio": "開啟工作室",diff --git a/tests/e2e/windows-native-checklist.spec.ts b/tests/e2e/windows-native-checklist.spec.tsindex 22b378196..ff0b56a5a 100644--- a/tests/e2e/windows-native-checklist.spec.ts+++ b/tests/e2e/windows-native-checklist.spec.ts@@ -5,12 +5,10 @@ import path from "node:path";import { fileURLToPath } from "node:url";import type { Page } from "@playwright/test";import { _electron as electron, expect, test } from "@playwright/test";-import { NATIVE_BRIDGE_CHANNEL, NATIVE_BRIDGE_VERSION } from "../../src/native/contracts";const __dirname = path.dirname(fileURLToPath(import.meta.url));const ROOT = path.join(__dirname, "../..");const MAIN_JS = path.join(ROOT, "dist-electron/main.js");-const TEST_VIDEO = path.join(__dirname, "../fixtures/sample.webm");async function launchApp() {const testUserDataDir = fs.mkdtempSync(path.join(os.tmpdir(), "openscreen-e2e-"));@@ -79,17 +77,6 @@ async function closeApp(app: ElectronApplication) {}}-async function copyFixtureToRecordings(app: ElectronApplication, fileName: string) {- const userDataDir = await app.evaluate(({ app: electronApp }) => {- return electronApp.getPath("userData");- });- const recordingsDir = path.join(userDataDir, "recordings");- const targetPath = path.join(recordingsDir, fileName);- fs.mkdirSync(recordingsDir, { recursive: true });- fs.copyFileSync(TEST_VIDEO, targetPath);- return targetPath;-}-async function dismissLanguagePrompt(page: Page) {const keepCurrentLanguage = page.getByRole("button")@@ -165,161 +152,6 @@ test.describe("Windows native checklist smoke tests", () => {}});- test("launch window opens an existing video into the editor and playback controls respond", async () => {- const app = await launchApp();- let testVideoInRecordings = "";-- try {- const hudWindow = await app.firstWindow({ timeout: 60_000 });- await hudWindow.waitForLoadState("domcontentloaded");- await dismissLanguagePrompt(hudWindow);- testVideoInRecordings = await copyFixtureToRecordings(app, "checklist-sample.webm");-- await app.evaluate(({ ipcMain }, videoPath) => {- ipcMain.removeHandler("open-video-file-picker");- ipcMain.handle("open-video-file-picker", () => ({- success: true,- path: videoPath,- }));- }, testVideoInRecordings);-- await hudWindow.getByTestId("launch-open-video-button").click();- const editorWindow = await app.waitForEvent("window", {- predicate: (w) => w.url().includes("windowType=editor"),- timeout: 15_000,- });- await editorWindow.waitForLoadState("domcontentloaded");- await expect(editorWindow.getByText("Loading video...")).not.toBeVisible({ timeout: 20_000 });-- const playButton = editorWindow.locator(- 'button[aria-label="Play"], button[aria-label="Lire"]',- );- await expect(playButton).toBeVisible({ timeout: 10_000 });- await playButton.click();-- const seekInput = editorWindow.locator('input[type="range"]').first();- await expect(seekInput).toBeVisible();- await seekInput.evaluate((input) => {- const range = input as HTMLInputElement;- range.value = "0.25";- range.dispatchEvent(new Event("input", { bubbles: true }));- range.dispatchEvent(new Event("change", { bubbles: true }));- });- await expect.poll(() => seekInput.inputValue(), { timeout: 10_000 }).not.toBe("0");-- await expect(- editorWindow.getByText("Background").or(editorWindow.getByText("Arrière-plan")),- ).toBeVisible();- await expect(editorWindow.getByRole("button", { name: "Export", exact: true })).toBeVisible();- } finally {- await closeApp(app);- if (testVideoInRecordings && fs.existsSync(testVideoInRecordings)) {- fs.unlinkSync(testVideoInRecordings);- }- }- });-- test("launch window opens an existing project into the editor", async () => {- const app = await launchApp();- let testVideoInRecordings = "";- let projectPath = "";-- try {- const hudWindow = await app.firstWindow({ timeout: 60_000 });- await hudWindow.waitForLoadState("domcontentloaded");- await dismissLanguagePrompt(hudWindow);- testVideoInRecordings = await copyFixtureToRecordings(app, "checklist-project-sample.webm");- projectPath = path.join(os.tmpdir(), `openscreen-checklist-${Date.now()}.openscreen`);- const project = {- version: 2,- videoPath: testVideoInRecordings,- editor: {},- };- fs.writeFileSync(projectPath, JSON.stringify(project), "utf-8");-- await app.evaluate(- ({ ipcMain }, payload) => {- ipcMain.removeHandler(payload.nativeBridgeChannel);- ipcMain.handle(payload.nativeBridgeChannel, (_event, request) => {- const success = (data: unknown) => ({- ok: true,- data,- meta: {- version: payload.nativeBridgeVersion,- requestId: request.requestId ?? "checklist-project-load",- timestampMs: Date.now(),- },- });-- if (request.domain === "project" && request.action === "loadProjectFile") {- return success({- success: true,- path: payload.projectPath,- project: payload.project,- });- }- if (request.domain === "project" && request.action === "loadCurrentProjectFile") {- return success({ success: false, canceled: true });- }- if (request.domain === "project" && request.action === "getCurrentVideoPath") {- return success({ success: true, path: payload.videoPath });- }- if (request.domain === "system" && request.action === "getPlatform") {- return success("win32");- }- if (request.domain === "system" && request.action === "getAssetBasePath") {- return success(null);- }- if (request.domain === "cursor" && request.action === "getRecordingData") {- return success({ version: 2, provider: "none", samples: [], assets: [] });- }- if (request.domain === "cursor" && request.action === "getTelemetry") {- return success([]);- }-- return {- ok: false,- error: {- code: "UNSUPPORTED_ACTION",- message: `Unexpected native bridge request in test: ${request.domain}.${request.action}`,- retryable: false,- },- meta: {- version: payload.nativeBridgeVersion,- requestId: request.requestId ?? "checklist-project-load",- timestampMs: Date.now(),- },- };- });- },- {- projectPath,- project,- videoPath: testVideoInRecordings,- nativeBridgeChannel: NATIVE_BRIDGE_CHANNEL,- nativeBridgeVersion: NATIVE_BRIDGE_VERSION,- },- );-- await hudWindow.getByTestId("launch-open-project-button").click();- const editorWindow = await app.waitForEvent("window", {- predicate: (w) => w.url().includes("windowType=editor"),- timeout: 15_000,- });- await editorWindow.waitForLoadState("domcontentloaded");- await expect(editorWindow.getByText("Loading video...")).not.toBeVisible({ timeout: 20_000 });- await expect(editorWindow.getByRole("button", { name: "Export", exact: true })).toBeVisible();- } finally {- await closeApp(app);- if (testVideoInRecordings && fs.existsSync(testVideoInRecordings)) {- fs.unlinkSync(testVideoInRecordings);- }- if (projectPath && fs.existsSync(projectPath)) {- fs.unlinkSync(projectPath);- }- }- });-// The HUD must reach click-through by *asking* for it from the renderer, never// by being born that way: a window born input-transparent whose renderer never// mounts can never be clicked again, which is what bricked the app in issue #266.@@ -336,8 +168,8 @@ test.describe("Windows native checklist smoke tests", () => {// Note what this test therefore cannot do, and what no test in this file can.// Only a real OS cursor move drives a WH_MOUSE_LL hook; CDP-injected input// arrives below the OS hit-test, so Playwright's own `.click()` on a HUD testid- // — above, and in the source-selector step of the checklist test — reaches the- // DOM handler whether or not click-through is installed, or even working. Those+ // — as in the source-selector test above — reaches the DOM handler whether or+ // not click-through is installed, or even working. Those// clicks assert renderer wiring and nothing else. The failure #266 actually shipped// (a painted, permanently inert HUD) is invisible to injected input by construction,// so it belongs on the manual computer-use checklist and cannot be regression-tested