fix(short-drama-agent-front): 优化项目操作与形态图库
This commit is contained in:
1 parent
27ee9fd4ff
commit
dbf97e6f98
11 files changed
+175
-109
No files matched your search
@@ -8,7 +8,7 @@ import { projectSettingsOpenKey } from '@/features/generation-config/context'
|
||||
import { preparationFixture } from './fixtures'
|
||||
|
||||
/** 当前挂载的检查入口,不连接模型或数据库写入。 */
|
||||
let wrapper: VueWrapper | undefined
|
||||
let wrapper: VueWrapper<InstanceType<typeof StoryboardPreparation>> | undefined
|
||||
afterEach(() => {
|
||||
wrapper?.unmount()
|
||||
wrapper = undefined
|
||||
@@ -39,7 +39,7 @@ async function openPreparation(id: string) {
|
||||
props: { projectId: id },
|
||||
global: { provide: { [projectSettingsOpenKey as symbol]: openSettings } }
|
||||
})
|
||||
await wrapper.get('button[aria-label="制作前检查"]').trigger('click')
|
||||
await wrapper.setProps({ open: true })
|
||||
await flushPromises()
|
||||
return { data, openSettings, drawer: new DOMWrapper(document.querySelector<HTMLElement>('.app-drawer')!) }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user