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
@@ -39,9 +39,8 @@ import { subjectImagesApi } from '@/features/subject-images/api'
|
||||
import { styleFixture, styleImageFixture } from '@/features/visual-style/testing/fixtures'
|
||||
import { identityFixture, identityImageFixture } from '@/features/subject-identity/testing/fixtures'
|
||||
import { getIdentitySession } from '@/features/subject-identity/model'
|
||||
import { drawerPanel, expandSections, selectControl } from '@/testing/naive'
|
||||
import { drawerPanel, expandSections, expandSection, selectControl } from '@/testing/naive'
|
||||
import ProductionPage from '@/features/production/ProductionPage.vue'
|
||||
import RawDataDetails from '@/components/ui/RawDataDetails.vue'
|
||||
import { getProductionSession } from '@/features/production/model'
|
||||
import { generationConfigApi } from '@/features/generation-config/api'
|
||||
import { AppDialog } from '@/components/ui'
|
||||
@@ -1791,7 +1790,24 @@ describe('工作台页面交互', () => {
|
||||
description: '真实镜头',
|
||||
visualFocus: '信封',
|
||||
durationSeconds: 5,
|
||||
subjects: [{ subjectId: 'subject-db', subjectFormId: 'form-db' }],
|
||||
subjects: [
|
||||
{
|
||||
subjectId: 'subject-db',
|
||||
subjectFormId: 'form-db',
|
||||
subjectRef: '@CH0001',
|
||||
subjectName: '林知夏',
|
||||
subjectFormName: '日常',
|
||||
module: 'character',
|
||||
identityDescription: '正式人物',
|
||||
appearancePrompt: '原形态描述',
|
||||
generationPrompt: '原生成描述',
|
||||
expression: '平静',
|
||||
pose: '站立',
|
||||
gaze: '信封',
|
||||
position: '画面右侧',
|
||||
transientState: '手持信封'
|
||||
}
|
||||
],
|
||||
direction: shot.direction,
|
||||
environment: {
|
||||
timeOfDay: '夜晚',
|
||||
@@ -1817,9 +1833,11 @@ describe('工作台页面交互', () => {
|
||||
button('整理生成方案').click()
|
||||
await flushPromises()
|
||||
expect(wrapper.find('pre').exists()).toBe(false)
|
||||
await wrapper.getComponent(RawDataDetails).get('.n-collapse-item__header-main').trigger('click')
|
||||
expect(wrapper.get('pre').text()).toContain('form-db')
|
||||
expect(wrapper.get('pre').text()).toContain('地面积水')
|
||||
await expandSection('本镜头生成内容', wrapper.element)
|
||||
expect(wrapper.text()).toContain('日常')
|
||||
expect(wrapper.text()).toContain('地面积水')
|
||||
expect(wrapper.find('pre').exists()).toBe(false)
|
||||
expect(wrapper.text()).not.toContain('form-db')
|
||||
expect(fetcher.mock.calls[2]?.[0]).toBe('/api/storyboard-shots/shot-db-1-1/generation-spec')
|
||||
expect(fetcher.mock.calls.every(([, init]) => init?.method !== 'POST')).toBe(true)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user