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
@@ -14,6 +14,7 @@ import {
|
||||
validOptionalSize
|
||||
} from '@/features/production/model'
|
||||
import { keyframeFixture, videoFixture } from '@/features/production/testing/fixtures'
|
||||
import { expandSection } from '@/testing/naive'
|
||||
|
||||
let wrapper: VueWrapper | undefined
|
||||
afterEach(() => {
|
||||
@@ -59,7 +60,8 @@ describe('镜头生产数据契约', () => {
|
||||
expect(source).toMatch(
|
||||
/\.video-input-grid\s*\{[^}]*max-width:\s*calc\(var\(--video-input-count\) \* 220px \+ \(var\(--video-input-count\) - 1\) \* 12px\)/
|
||||
)
|
||||
expect(source).toMatch(/\.keyframe-card \.asset-image\s*\{[^}]*aspect-square/)
|
||||
const keyframeCard = readFileSync('src/features/production/components/KeyframeCard.vue', 'utf8')
|
||||
expect(keyframeCard).toMatch(/\.keyframe-card \.asset-image\s*\{[^}]*aspect-square/)
|
||||
const videoCard = readFileSync('src/features/production/components/VideoCard.vue', 'utf8')
|
||||
expect(videoCard).toContain('class="block aspect-square w-full bg-[#080808] object-contain"')
|
||||
expect(source).toMatch(/\.video-input-card\s*\{[^}]*bg-\(--app-control\)/)
|
||||
@@ -359,6 +361,8 @@ describe('镜头生产数据契约', () => {
|
||||
})
|
||||
expect(document.body.textContent).toContain('1 张参考图')
|
||||
expect(document.body.textContent).toContain('未进入模型的参考图')
|
||||
expect(document.body.textContent).not.toContain('最终首帧 Prompt')
|
||||
await expandSection('本次实际使用的画面描述')
|
||||
expect(document.body.textContent).toContain('最终首帧 Prompt')
|
||||
expect(wrapper.emitted('generate')).toBeUndefined()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user