From 3f942e1dcf8ad1c050ebda083bb12f7d986b2660 Mon Sep 17 00:00:00 2001 From: GouJ Date: Sat, 26 Sep 2026 21:52:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=B7=A5=E4=BD=9C=E5=8C=BA=E5=A4=A7=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/testing/naive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/naive.ts b/src/testing/naive.ts index 392cfc4..002ba62 100644 --- a/src/testing/naive.ts +++ b/src/testing/naive.ts @@ -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('.workspace-tools-drawer') + return new DOMWrapper(document.body).get('.workspace-tools-modal') } /** 通过真实菜单触发器访问低频功能,不直接调用组件内部方法绕过可见性。 */