test: 校验首帧预览请求参数

This commit is contained in:
GouJ committed 2026-09-24 19:03:34 +08:00
1 parent ddd5b4b4da
commit de2bf6632e
1 file changed
+4
@@ -262,6 +262,10 @@ describe('镜头生产数据契约', () => {
button('预览实际生成输入').click()
await flushPromises()
expect(fetcher.mock.calls[0]?.[0]).toBe('/api/storyboard-shots/shot-1/keyframe/preview')
expect(JSON.parse(String(fetcher.mock.calls[0]?.[1]?.body))).toMatchObject({
provider: 'seedream',
generationOptions: {}
})
expect(document.body.textContent).toContain('已选 1 / 2 张')
expect(document.body.textContent).toContain('省略 1 张')
expect(document.body.textContent).toContain('最终首帧 Prompt')