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(creator): await persisted history selection in dashboard
MijaelX0ec6f992b3a9
diff --git a/apps/web/src/features/dashboard/DashboardPage.test.tsx b/apps/web/src/features/dashboard/DashboardPage.test.tsxindex 688ee2b1..1da4bb6e 100644--- a/apps/web/src/features/dashboard/DashboardPage.test.tsx+++ b/apps/web/src/features/dashboard/DashboardPage.test.tsx@@ -72,6 +72,13 @@ function createInMemoryCreatorService(): CreatorWebService {state: { ...current.state, ...patch },updatedAt: new Date().toISOString()};+ } else if (request.action === 'select-result-version') {+ job = {+ ...current,+ revision: current.revision + 1,+ state: { ...current.state, resultVersion: request.input.version! },+ updatedAt: new Date().toISOString()+ };} else if (current.templateId === 'video-translation' && request.action === 'edit-subtitle') {job = editTranslationSubtitles(current, request.input);} else if (current.templateId === 'video-translation' && request.action === 'commit-version') {@@ -1333,7 +1340,8 @@ describe('DashboardPage', () => {const reopenedVersionMenu = screen.getByRole('menu');fireEvent.click(within(reopenedVersionMenu).getByText('项目 V1').closest('button') as HTMLButtonElement);- expect(screen.getByText('项目 V1')).toBeInTheDocument();+ expect(await screen.findByRole('button', { name: '项目 V1' })).toBeInTheDocument();+ expect(screen.queryByRole('menu')).not.toBeInTheDocument();expect(screen.queryByText('正在查看 V1')).not.toBeInTheDocument();fireEvent.click(screen.getByRole('tab', { name: '任务设置' }));const settings = screen.getByText('目标语言').closest('dl');