test: 校验首帧预览请求参数
This commit is contained in:
1 parent
ddd5b4b4da
commit
de2bf6632e
1 file changed
+4
@@ -262,6 +262,10 @@ describe('镜头生产数据契约', () => {
|
|||||||
button('预览实际生成输入').click()
|
button('预览实际生成输入').click()
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
expect(fetcher.mock.calls[0]?.[0]).toBe('/api/storyboard-shots/shot-1/keyframe/preview')
|
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 / 2 张')
|
||||||
expect(document.body.textContent).toContain('省略 1 张')
|
expect(document.body.textContent).toContain('省略 1 张')
|
||||||
expect(document.body.textContent).toContain('最终首帧 Prompt')
|
expect(document.body.textContent).toContain('最终首帧 Prompt')
|
||||||
|
|||||||
Reference in new issue
Block a user