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
@@ -168,9 +168,19 @@ describe('已有失败图片的摄影修订', () => {
|
||||
it('保存不采用;明确采用后旧failed转当前stale,原Primary/图片/审核和费用仍保留', async () => {
|
||||
const { wrapper, fetcher, rows } = await camera()
|
||||
try {
|
||||
expect(
|
||||
wrapper
|
||||
.findAll('.workspace-numbered-sections > .workspace-numbered-section')
|
||||
.map(block => block.get('.workspace-section-marker').text())
|
||||
).toEqual(['I', 'II', 'III', 'IV', 'V'])
|
||||
const input = wrapper.findAllComponents(NInput).find(row => row.attributes('aria-label') === '摄影构图')!
|
||||
input.vm.$emit('update:value', '本次新构图,保持正式主体与原动作')
|
||||
await flushPromises()
|
||||
expect(
|
||||
wrapper
|
||||
.findAll('.workspace-numbered-sections > .workspace-numbered-section')
|
||||
.map(block => block.get('.workspace-section-marker').text())
|
||||
).toEqual(['I', 'II', 'III', 'IV', 'V', 'VI'])
|
||||
await click(wrapper, '保存草案')
|
||||
expect(
|
||||
fetcher.mock.calls.some(([url]) => String(url).endsWith('/storyboard-derived-reviews/confirm'))
|
||||
@@ -205,6 +215,8 @@ describe('已有失败图片的摄影修订', () => {
|
||||
depthOfField: 'shallow',
|
||||
visualIntent: '观察来信'
|
||||
})
|
||||
await wrapper.findAll('.keyframe-card')[0]!.get('button[aria-label="查看首帧详情"]').trigger('click')
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('历史审核未通过,当前来源已变化')
|
||||
expect(wrapper.text()).toContain('草案来源已变化')
|
||||
expect(wrapper.text()).toContain('主首帧')
|
||||
|
||||
@@ -194,6 +194,17 @@ describe('原摄影抽屉内的联合流程', () => {
|
||||
it.each([false, true])('保存、画面预览、联合免费预检和采用分开,幂等回执=%s', async reused => {
|
||||
const { wrapper, fetcher, fixture } = await editor(false, reused)
|
||||
expect(wrapper.text()).toContain('完整字段差异(4 项)')
|
||||
expect(wrapper.findAll('.workspace-section-marker').map(item => item.text())).toEqual([
|
||||
'I',
|
||||
'II',
|
||||
'III',
|
||||
'IV',
|
||||
'V',
|
||||
'VI'
|
||||
])
|
||||
expect(wrapper.findAll('.workspace-panel > .workspace-section-heading .workspace-section-marker')).toHaveLength(
|
||||
0
|
||||
)
|
||||
expect(fetcher.mock.calls.every(([, init]) => init?.method === 'GET')).toBe(true)
|
||||
wrapper
|
||||
.findAllComponents(NInput)
|
||||
@@ -280,6 +291,15 @@ describe('原摄影抽屉内的联合流程', () => {
|
||||
it('环境差异须逐字本集证据,冻结原字节全文SHA;保存和预检不自动采用', async () => {
|
||||
const { wrapper, fetcher, episode } = await editor(false, false, true)
|
||||
expect(wrapper.text()).toContain('本集原文依据')
|
||||
expect(wrapper.findAll('.workspace-section-marker').map(item => item.text())).toEqual([
|
||||
'I',
|
||||
'II',
|
||||
'III',
|
||||
'IV',
|
||||
'V',
|
||||
'VI',
|
||||
'VII'
|
||||
])
|
||||
await wrapper.vm.save()
|
||||
await flushPromises()
|
||||
await click(wrapper, '免费核对草案画面输入')
|
||||
|
||||
Reference in new issue
Block a user