fix(short-drama-agent-front): 优化工作区提示与弹窗布局

This commit is contained in:
GJ committed 2026-10-09 18:31:09 +08:00
1 parent 5b134207b8
commit 72a86171dc
35 files changed
+586 -378

No files matched your search

+7 -3
View File
@@ -13,6 +13,7 @@ import type { ProjectDetail } from '@/features/projects/types'
import type { Checkpoint } from '@/features/workflows/types'
import StoryboardPage from '@/features/storyboard/StoryboardPage.vue'
import ShotTools from '@/features/storyboard/components/ShotTools.vue'
import ShotDesign from '@/features/storyboard/components/ShotDesign.vue'
import {
designedShot,
directionsResult,
@@ -1416,8 +1417,10 @@ describe('工作台页面交互', () => {
)
)
await flushPromises()
expect(wrapper!.text()).toContain('shot-db-2-1')
expect(wrapper!.text()).not.toContain('shot-db-1-1')
/** 用当前设计组件的正式镜头验证迟到响应隔离,不依赖已隐藏的内部编号文案。 */
expect(wrapper!.getComponent(ShotDesign).props('shot').shotId).toBe('shot-db-2-1')
expect(wrapper!.text()).toContain('第2集镜头1')
expect(wrapper!.text()).not.toContain('第1集镜头1')
expect(fetcher.mock.calls).toHaveLength(4)
})
@@ -1442,7 +1445,8 @@ describe('工作台页面交互', () => {
button('重试查询').click()
await flushPromises()
expect(button('补齐项目导演设计').disabled).toBe(false)
expect(wrapper!.text()).toContain('shot-db-1-1')
/** 重试恢复正式镜头数据,内部编号仍用于业务选择。 */
expect(wrapper!.getComponent(ShotDesign).props('shot').shotId).toBe('shot-db-1-1')
})
it('镜头工具按需 GET,切换镜头会废弃旧参考图,未完成设计不能编译规格', async () => {