Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
test(e2e): use configured Windows runtime for Whisper parity
MijaelX62ef57781596
diff --git a/apps/web/e2e/web-desktop-parity.spec.ts b/apps/web/e2e/web-desktop-parity.spec.tsindex 3a9c31bc..08221fda 100644--- a/apps/web/e2e/web-desktop-parity.spec.ts+++ b/apps/web/e2e/web-desktop-parity.spec.ts@@ -511,7 +511,7 @@ test('小红书帖子在 Browser/Desktop Bridge 下保持相同界面、请求expect(results[1]!.state).toEqual(results[0]!.state);});-test('本地 Whisper 在 Browser/Desktop Bridge 下遵守 Runtime 能力并保持相同持久状态', async ({+test('Windows 本地 Whisper 在 Browser/Desktop Bridge 下保持相同界面、请求和持久状态', async ({browser,runtime}, testInfo) => {@@ -551,24 +551,6 @@ test('本地 Whisper 在 Browser/Desktop Bridge 下遵守 Runtime 能力并保.getByRole('region', { name: 'OpenCreator 工作区' }).getByRole('main');const localMode = settings.getByRole('button', { name: '本地 Whisper' });- if (process.platform !== 'win32' || process.arch !== 'x64') {- await expect(localMode).toBeEnabled({ enabled: process.platform === 'darwin' && process.arch === 'arm64' });- const box = await localMode.boundingBox();- expect(box).not.toBeNull();- const persisted = await runtime.api<{- config: { transcription: Record<string, unknown> };- }>('GET', '/creator-services/config');- results.push({- text: normalizeParityText(await settings.innerText()),- boxes: { 'local-mode': {- x: Math.round(box!.x), y: Math.round(box!.y),- width: Math.round(box!.width), height: Math.round(box!.height)- } },- requests,- transcription: persisted.config.transcription- });- continue;- }await expect(settings.getByText('Windows · x64')).toBeVisible();await expect(localMode).toBeEnabled();await localMode.click();@@ -620,10 +602,6 @@ test('本地 Whisper 在 Browser/Desktop Bridge 下遵守 Runtime 能力并保expect(results[1]!.boxes).toEqual(results[0]!.boxes);expect(results[1]!.requests).toEqual(results[0]!.requests);expect(results[1]!.transcription).toEqual(results[0]!.transcription);- if (process.platform !== 'win32' || process.arch !== 'x64') {- expect(results[0]!.requests).not.toContain('PATCH /creator-services/config');- return;- }expect(results[0]!.transcription).toMatchObject({provider: 'whisper.cpp',whisperCpp: { model: 'medium' }