fix(short-drama-agent-front): 统一全屏布局与问题处理交互

This commit is contained in:
GJ committed 2026-10-17 17:40:39 +08:00
1 parent db91a4b871
commit cc27d463e0
25 files changed
+838 -316

No files matched your search

@@ -1,17 +1,17 @@
import { afterEach, describe, expect, it } from 'vitest'
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
import BreakdownIssuesDialog from '@/features/breakdown/components/BreakdownIssuesDialog.vue'
import AppDialog from '@/components/ui/AppDialog.vue'
import AppDrawer from '@/components/ui/AppDrawer.vue'
/** 独立问题弹窗实例,验证后移除 Teleport。 */
/** 独立全屏问题抽屉实例,验证后移除 Teleport。 */
let wrapper: VueWrapper | undefined
afterEach(() => {
wrapper?.unmount()
document.body.innerHTML = ''
})
describe('拆解问题弹窗', () => {
it('同镜头问题合并展示并去重,定位等待弹窗离场后发出', async () => {
describe('拆解问题抽屉', () => {
it('同镜头问题合并展示并去重,定位等待抽屉离场后发出', async () => {
wrapper = mount(BreakdownIssuesDialog, {
attachTo: document.body,
props: {
@@ -34,7 +34,7 @@ describe('拆解问题弹窗', () => {
button.click()
await flushPromises()
expect(wrapper.emitted('locate')).toBeUndefined()
wrapper.getComponent(AppDialog).vm.$emit('closed')
wrapper.getComponent(AppDrawer).vm.$emit('closed')
expect(wrapper.emitted('locate')?.[0]?.[0]).toMatchObject({ episodeNo: 1, beatNo: 2, shotNo: 3 })
})
})