fix: 将全部业务抽屉提升为全局全高侧栏

This commit is contained in:
GouJ
2026-09-04 10:23:00 +08:00
parent 13bb6dc83b
commit f3657ea0a6
8 changed files with 68 additions and 54 deletions
+6 -1
View File
@@ -1,6 +1,11 @@
import { flushPromises, type VueWrapper } from '@vue/test-utils'
import { DOMWrapper, flushPromises, type VueWrapper } from '@vue/test-utils'
import { NSelect } from 'naive-ui'
/** 抽屉通过真实 Teleport 挂到 body,测试也从外层读取,不禁用 Teleport 掩盖挂载问题。 */
export function drawerPanel() {
return new DOMWrapper(document.body).get<HTMLElement>('.workspace-tools-drawer')
}
/** 通过真实菜单触发器访问低频功能,不直接调用组件内部方法绕过可见性。 */
export async function selectMenu(label: string, option: string) {
const trigger = [...document.querySelectorAll<HTMLButtonElement>('button')].find(