mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
fix(video): transcribe from the smallest full proxy
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user