From 0a556e78babcd5de6295c9014f01c704e168cc8f Mon Sep 17 00:00:00 2001 From: Palash Debnath <4178343+debpalash@users.noreply.github.com> Date: Thu, 17 Sep 2026 01:23:53 +0530 Subject: [PATCH] Cover pause and sample-switch playhead continuity --- .../src/features/dub/dubbing-demo.test.tsx | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/electron/src/renderer/src/features/dub/dubbing-demo.test.tsx b/electron/src/renderer/src/features/dub/dubbing-demo.test.tsx index 5c6b6bf5..1164d8c4 100644 --- a/electron/src/renderer/src/features/dub/dubbing-demo.test.tsx +++ b/electron/src/renderer/src/features/dub/dubbing-demo.test.tsx @@ -18,7 +18,7 @@ const mocks = vi.hoisted(() => ({ vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => key }) })); vi.mock('@/lib/api/client', () => ({ apiJson: mocks.api, apiPath: (path: string) => path })); vi.mock('@/components/video-player', () => ({ - VideoPlayer: ({ controls, playerRef, onPlay, source }: Record) => { + VideoPlayer: ({ controls, playerRef, onPlay, onPause, source }: Record) => { mocks.videoProps.push({ controls, source }); let player = mocks.players.get(source); if (!player) { @@ -39,6 +39,7 @@ vi.mock('@/components/video-player', () => ({