perf(short-drama-agent-front): 优化记录加载与工作区体验

This commit is contained in:
GJ committed 2026-11-06 20:56:25 +08:00
1 parent d0264c08ce
commit db9aea1694
111 files changed
+1680 -1290

No files matched your search

+2 -2
View File
@@ -169,7 +169,7 @@ describe('故事规划创作进度与恢复', () => {
expect(page.find('[aria-label="剧本创作任务"]').exists()).toBe(false)
const dialog = await openTask(page)
expect(dialog.text()).toContain('验收任务中断')
expect(dialog.text()).toContain('缺少已保存的故事规划')
expect(dialog.text()).toContain('暂无故事规划')
expect(dialog.find('button[aria-label="隐藏制作任务记录"]').exists()).toBe(false)
const footer = dialog.get('.dialog-footer')
expect(footer.find('button[aria-label="恢复生成"]').exists()).toBe(true)
@@ -352,7 +352,7 @@ describe('故事规划创作进度与恢复', () => {
const page = await open(execution(context.project.value!.id, { status: 'failed', stage: 'failed' }))
const dialog = await openTask(page)
expect(dialog.get('button[aria-label="恢复生成"]').attributes('disabled')).toBeDefined()
expect(dialog.text()).toContain('缺少已保存的故事规划')
expect(dialog.text()).toContain('暂无故事规划')
})
it('节点切换重读项目与保存记录,不需要等到整个任务结束', async () => {