Skip to content

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.

fix: update packaged voice picker interaction checks

Leggetta7c4c6bd1699
diff --git a/apps/desktop/e2e/creator-packaged-app.spec.ts b/apps/desktop/e2e/creator-packaged-app.spec.ts
index 6c1bc760..8e63c742 100644
--- a/apps/desktop/e2e/creator-packaged-app.spec.ts
+++ b/apps/desktop/e2e/creator-packaged-app.spec.ts
@@ -916,20 +916,18 @@ test('@package-smoke 实际 Desktop 包创建并重启恢复 Creator Job,且
const providerSelect = currentApp.page.getByRole('combobox', { name: '服务商' });
await expect(providerSelect).toHaveText('OpenAI TTS');
await expect(currentApp.page.getByRole('combobox', { name: '默认音色' }))
- .toHaveValue('marin');
+ .toHaveAttribute('data-value', 'marin');
await providerSelect.click();
await currentApp.page.getByRole('option', { name: '阿里云百炼' }).click();
await expect(currentApp.page.getByLabel('Base URL'))
.toHaveValue('https://dashscope.aliyuncs.com/api/v1');
await expect(currentApp.page.getByLabel('模型')).toHaveValue('qwen3-tts-flash');
- await expect.poll(async () => (
- currentApp.page.getByRole('combobox', { name: '默认音色' })
- .locator('option')
- .allTextContents()
- )).toEqual(expect.arrayContaining([
- expect.stringContaining('Cherry'),
- expect.stringContaining('Kiki')
- ]));
+ const defaultVoice = currentApp.page.getByRole('combobox', { name: '默认音色' });
+ await expect(defaultVoice).toBeEnabled();
+ await defaultVoice.click();
+ await expect(currentApp.page.getByRole('option', { name: /Cherry/ })).toBeVisible();
+ await expect(currentApp.page.getByRole('option', { name: /Kiki/ })).toBeVisible();
+ await defaultVoice.press('Escape');
await currentApp.page.getByRole('button', { name: '工作台' }).click();
await expect(currentApp.page.getByRole('heading', { name: '工作台' })).toBeVisible();