fix: 测试工具适配工作区大弹窗
This commit is contained in:
1 parent
d1a3523041
commit
3f942e1dcf
1 file changed
+2
-2
@@ -1,9 +1,9 @@
|
||||
import { DOMWrapper, flushPromises, type VueWrapper } from '@vue/test-utils'
|
||||
import { NSelect } from 'naive-ui'
|
||||
|
||||
/** 抽屉通过真实 Teleport 挂到 body,测试也从外层读取,不禁用 Teleport 掩盖挂载问题。 */
|
||||
/** 工作区工具弹窗通过真实 Teleport 挂到 body,测试从外层读取,不禁用 Teleport 掩盖挂载问题。 */
|
||||
export function drawerPanel() {
|
||||
return new DOMWrapper(document.body).get<HTMLElement>('.workspace-tools-drawer')
|
||||
return new DOMWrapper(document.body).get<HTMLElement>('.workspace-tools-modal')
|
||||
}
|
||||
|
||||
/** 通过真实菜单触发器访问低频功能,不直接调用组件内部方法绕过可见性。 */
|
||||
|
||||
Reference in new issue
Block a user