From 8a4ad1114bd1985e081ef858d42d63623c6397ef Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Tue, 22 Oct 2024 16:47:38 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tooltip/__snapshots__/index-spec.tsx.snap | 934 ++++++++---------- .../unit/components/tooltip/index-spec.tsx | 2 +- 2 files changed, 391 insertions(+), 545 deletions(-) diff --git a/packages/s2-react/__tests__/unit/components/tooltip/__snapshots__/index-spec.tsx.snap b/packages/s2-react/__tests__/unit/components/tooltip/__snapshots__/index-spec.tsx.snap index 6d237cc704..e15fad005c 100644 --- a/packages/s2-react/__tests__/unit/components/tooltip/__snapshots__/index-spec.tsx.snap +++ b/packages/s2-react/__tests__/unit/components/tooltip/__snapshots__/index-spec.tsx.snap @@ -106,54 +106,43 @@ exports[`Tooltip Common Components Tests render custom react component icon 1`] tabindex="0" >
  • - + + + react component icon +
  • - + + + + + 隐藏 +
  • - + + + + 组内升序 +
  • - + + + + 组内降序 +
  • - + 不排序 +
  • - + + + + 组内升序 +
  • - + + + + 组内降序 +
  • - + 不排序 +
  • - + + + + 组内升序 +
  • - + + + + 组内降序 +
  • - + 不排序 +
  • - + + + + 组内升序 +
  • - + + + + 组内降序 +
  • - + 不排序 +
  • { expect(screen.getByText('不排序')).toBeDefined(); const selectedMenu = Array.from( - document.querySelectorAll('.ant-menu-submenu-selected'), + document.querySelectorAll('.ant-menu-item-selected'), ); expect(selectedMenu).toHaveLength(1);