diff --git a/WonderQ-Admin-UI-Vue/src/components/layout/SidebarItem.test.ts b/WonderQ-Admin-UI-Vue/src/components/layout/SidebarItem.test.ts new file mode 100644 index 0000000..b178878 --- /dev/null +++ b/WonderQ-Admin-UI-Vue/src/components/layout/SidebarItem.test.ts @@ -0,0 +1,17 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +const source = readFileSync(new URL("./SidebarItem.vue", import.meta.url), "utf8"); + +describe("侧栏菜单图标容器", () => { + it("避免折叠菜单把 Tooltip 触发器误判为隐藏文本", () => { + expect(source).toContain('