fix(short-drama-agent-front): 修正分镜诊断状态与响应式布局
This commit is contained in:
1 parent
1da56e0d46
commit
b34dc02e39
23 files changed
+796
-273
No files matched your search
@@ -43,16 +43,21 @@ describe('候选预检查与最终提交门禁', () => {
|
||||
openPanel()
|
||||
expect(preview).not.toHaveBeenCalled()
|
||||
expect(commit).not.toHaveBeenCalled()
|
||||
expect(wrapper!.findAll('button').some(button => button.text() === '重新检查')).toBe(true)
|
||||
await wrapper!.findAll('button').find(button => button.text() === '重新检查')!.trigger('click')
|
||||
expect(wrapper!.emitted('refresh')).toHaveLength(1)
|
||||
await checkCandidate()
|
||||
expect(commit).not.toHaveBeenCalled()
|
||||
expect(document.querySelector('.app-dialog')?.textContent).toContain('确认提交候选为正式结果')
|
||||
await confirmCandidate()
|
||||
expect(preview).toHaveBeenCalledTimes(2)
|
||||
expect(commit).toHaveBeenCalledExactlyOnceWith('candidate-project')
|
||||
expect(wrapper!.emitted('refresh')).toHaveLength(1)
|
||||
expect(wrapper!.text()).toContain('候选已提交')
|
||||
expect(wrapper!.emitted('refresh')).toHaveLength(2)
|
||||
expect(wrapper!.text()).toContain('拆解结果已保存并采用')
|
||||
expect(wrapper!.findAll('button').some(button => button.text() === '重新检查')).toBe(false)
|
||||
await wrapper!.setProps({ state: candidateState({ storyboardPersisted: true, candidateCommitted: true }), quality: breakdownQuality(selectBreakdownSource([candidateCheckpoint(candidateState({ storyboardPersisted: true, candidateCommitted: true }))]), null) })
|
||||
expect(wrapper!.findAll('button').some(button => button.text() === '提交候选为正式结果')).toBe(false)
|
||||
expect(wrapper!.findAll('button').some(button => button.text() === '重新检查')).toBe(false)
|
||||
})
|
||||
it('ready=false 显示未通过项且不打开最终确认', async () => {
|
||||
const result = commitPreview()
|
||||
|
||||
Reference in new issue
Block a user