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(transcription): assert the silent-media toast says what it says
EtienneLescot6cca414c517f
diff --git a/src/lib/ai-edition/store/transcriptionStore.test.ts b/src/lib/ai-edition/store/transcriptionStore.test.tsindex 95e9fadea..4190b937f 100644--- a/src/lib/ai-edition/store/transcriptionStore.test.ts+++ b/src/lib/ai-edition/store/transcriptionStore.test.ts@@ -1,5 +1,6 @@// @vitest-environment jsdomimport { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import { toastText } from "@/i18n/toastText";import type { AxcutDocument, AxcutTranscript } from "../schema";import { useProjectStore } from "./projectStore";import { useTranscriptionStore, whenTranscriptionIdle } from "./transcriptionStore";@@ -267,6 +268,12 @@ describe("useTranscriptionStore", () => {expect(toastMocks.error).not.toHaveBeenCalled();expect(toastMocks.info).toHaveBeenCalledTimes(1);+ // The COPY, not just the count: the point of the toast is that it says the+ // file has no audio. Resolved through the same helper the store uses, so a+ // reworded string stays a translation change rather than a test failure.+ expect(toastMocks.info).toHaveBeenCalledWith(+ toastText("editor", "mediaStage.noAudioTrackHint"),+ );});it("request() re-runs a failed asset and clears the remembered verdict", async () => {