fix(video): transcribe from the smallest full proxy

This commit is contained in:
yiling
2026-12-03 21:05:40 +08:00
parent cdd45429c4
commit 659ed5dab4
15 changed files with 210 additions and 53 deletions
@@ -45,14 +45,20 @@ test('selects a transcription language from the video context menu and tracks th
}),
)
.toMatchObject({ status: 'processed', media: { proxyType: 'video' } })
await prisma.asset.update({ where: { id: fileId }, data: { status: 'processing' } })
const [signupInfo] = await Promise.all([
page.waitForResponse('**/api/signup-info'),
page.goto(`/projects/${projectId}`),
])
expect(await signupInfo.json()).toMatchObject({ transcriptionEnabled: true })
const action = page.getByRole('menuitem', { name: 'Generate Transcripts' })
await fileCard(page, fileName).click({ button: 'right' })
await expect(action).toBeDisabled()
await prisma.asset.update({ where: { id: fileId }, data: { status: 'processed' } })
await page.reload()
const openDialog = async () => {
await fileCard(page, fileName).click({ button: 'right' })
await page.getByRole('menuitem', { name: 'Generate Transcripts' }).click()
await action.click()
}
await openDialog()
const dialog = page.getByRole('dialog', { name: 'Generate Transcripts' })