feat(short-drama-agent-front): 新增拆解候选与质量修订
This commit is contained in:
1 parent
49ad08a63e
commit
3414cc8232
32 files changed
+2319
-454
No files matched your search
@@ -2094,18 +2094,22 @@ describe('工作台页面交互', () => {
|
||||
await expandSections()
|
||||
button('预览分组').click()
|
||||
await flushPromises()
|
||||
expect(button('开始拆解').disabled).toBe(false)
|
||||
expect(button('生成拆解候选').disabled).toBe(false)
|
||||
await drawerPanel().get('#group-size').setValue('2')
|
||||
expect(document.body.textContent).not.toContain('开始拆解')
|
||||
expect(document.body.textContent).not.toContain('生成拆解候选')
|
||||
button('预览分组').click()
|
||||
await flushPromises()
|
||||
button('开始拆解').click()
|
||||
button('生成拆解候选').click()
|
||||
await flushPromises()
|
||||
button('确认开始拆解').click()
|
||||
button('确认生成拆解候选').click()
|
||||
await flushPromises()
|
||||
const post = fetcher.mock.calls.find(call => call[1]?.method === 'POST')
|
||||
expect(post?.[0]).toBe('/api/projects/page-test-project/breakdown/start')
|
||||
expect(JSON.parse(post![1]!.body as string)).toEqual({ groupSize: 2, modules: ['character', 'scene', 'prop'] })
|
||||
expect(JSON.parse(post![1]!.body as string)).toEqual({
|
||||
groupSize: 2,
|
||||
modules: ['character', 'scene', 'prop'],
|
||||
candidateOnly: true
|
||||
})
|
||||
expect(provided.refresh).toHaveBeenCalledOnce()
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user