feat(short-drama-agent-front): 优化分镜界面并新增弹窗手势
This commit is contained in:
1 parent
b15a6011ce
commit
d68f03471c
59 files changed
+2694
-857
No files matched your search
@@ -2,6 +2,7 @@ import { flushPromises, mount } from '@vue/test-utils'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import KeyframeInputDetails from '@/features/production/components/KeyframeInputDetails.vue'
|
||||
import { historicalReferenceUrl, type HistoricalKeyframeReference } from '@/features/production/keyframe-input'
|
||||
import { expandSection } from '@/testing/naive'
|
||||
|
||||
/** 两种职责对应同一张实际参考图。 */
|
||||
const reference: HistoricalKeyframeReference = {
|
||||
@@ -66,6 +67,8 @@ describe('历史首帧输入', () => {
|
||||
expect(fetcher).not.toHaveBeenCalled()
|
||||
await wrapper.get('.n-collapse-item__header-main').trigger('click')
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).not.toContain('当次描述 one')
|
||||
await expandSection('本次实际使用的画面描述', wrapper.element)
|
||||
expect(wrapper.text()).toContain('当次描述 one')
|
||||
expect(wrapper.text()).toContain('原图已变化')
|
||||
expect(wrapper.text()).toContain('@CH01')
|
||||
@@ -73,6 +76,8 @@ describe('历史首帧输入', () => {
|
||||
expect(wrapper.find('img').exists()).toBe(false)
|
||||
await wrapper.setProps({ keyframeId: 'two' })
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).not.toContain('当次描述 two')
|
||||
await expandSection('本次实际使用的画面描述', wrapper.element)
|
||||
expect(wrapper.text()).toContain('当次描述 two')
|
||||
expect(wrapper.text()).not.toContain('当次描述 one')
|
||||
expect(wrapper.text()).toContain('原图不可用')
|
||||
|
||||
Reference in new issue
Block a user