fix: 为镜头提示词缺少首帧提供操作指引
This commit is contained in:
1 parent
0ce9ae00e7
commit
de26dd0c19
8 files changed
+149
-19
No files matched your search
@@ -1409,6 +1409,33 @@ describe('工作台页面交互', () => {
|
||||
expect(wrapper.text()).toContain('<script>模型内容</script>')
|
||||
expect(wrapper.find('script').exists()).toBe(false)
|
||||
})
|
||||
|
||||
it('提示词生成缺少主首帧时保存当前剧集和镜头作为恢复位置', async () => {
|
||||
vi.stubGlobal(
|
||||
'fetch',
|
||||
vi.fn<typeof fetch>().mockResolvedValue(
|
||||
new Response(
|
||||
JSON.stringify({
|
||||
message:
|
||||
'服务器内部错误 Shot 缺少可用于视频 0 秒起点校验的 Primary Keyframe: shot-db-1-1'
|
||||
}),
|
||||
{ status: 500 }
|
||||
)
|
||||
)
|
||||
)
|
||||
wrapper = mount(ShotTools, {
|
||||
attachTo: document.body,
|
||||
props: { projectId: fixture.id, episodeNo: 1, shot: designedShot(), disabled: false }
|
||||
})
|
||||
|
||||
await confirmGeneration('读取/生成提示词')
|
||||
|
||||
expect(getOperation(fixture.id).recovery).toEqual({
|
||||
target: 'keyframe',
|
||||
shotId: 'shot-db-1-1',
|
||||
episodeNo: 1
|
||||
})
|
||||
})
|
||||
it('项目筛选无结果时可清除条件并返回真实列表', async () => {
|
||||
vi.stubGlobal(
|
||||
'fetch',
|
||||
|
||||
Reference in new issue
Block a user