test: add project id to keyframe dialog props
This commit is contained in:
1 parent
91dafbb5e0
commit
253f858b4b
1 file changed
+2
-2
@@ -191,7 +191,7 @@ describe('镜头生产数据契约', () => {
|
|||||||
it('所有首帧生成都先成为候选,并要求费用确认', async () => {
|
it('所有首帧生成都先成为候选,并要求费用确认', async () => {
|
||||||
wrapper = mount(KeyframeDialog, {
|
wrapper = mount(KeyframeDialog, {
|
||||||
attachTo: document.body,
|
attachTo: document.body,
|
||||||
props: { open: true, shotId: 'shot-1', shotTitle: '开场', disabled: false }
|
props: { open: true, shotId: 'shot-1', shotTitle: '开场', projectId: 'project-1', disabled: false }
|
||||||
})
|
})
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
expect(button('确认生成首帧').disabled).toBe(true)
|
expect(button('确认生成首帧').disabled).toBe(true)
|
||||||
@@ -256,7 +256,7 @@ describe('镜头生产数据契约', () => {
|
|||||||
vi.stubGlobal('fetch', fetcher)
|
vi.stubGlobal('fetch', fetcher)
|
||||||
wrapper = mount(KeyframeDialog, {
|
wrapper = mount(KeyframeDialog, {
|
||||||
attachTo: document.body,
|
attachTo: document.body,
|
||||||
props: { open: true, shotId: 'shot-1', shotTitle: '开场', disabled: false }
|
props: { open: true, shotId: 'shot-1', shotTitle: '开场', projectId: 'project-1', disabled: false }
|
||||||
})
|
})
|
||||||
await flushPromises()
|
await flushPromises()
|
||||||
button('预览实际生成输入').click()
|
button('预览实际生成输入').click()
|
||||||
|
|||||||
Reference in new issue
Block a user