diff --git a/src/renderer/src/components/__tests__/Scrollbar.test.tsx b/src/renderer/src/components/__tests__/Scrollbar.test.tsx index e7d00b205e..55a3d9d840 100644 --- a/src/renderer/src/components/__tests__/Scrollbar.test.tsx +++ b/src/renderer/src/components/__tests__/Scrollbar.test.tsx @@ -160,21 +160,6 @@ describe('Scrollbar', () => { }) describe('props handling', () => { - it('should handle right prop correctly', () => { - const { container } = render( - - 内容 - - ) - - const scrollbar = screen.getByTestId('scrollbar') - - // 验证 right 属性被正确传递 - expect(scrollbar).toBeDefined() - // snapshot 测试 styled-components 样式 - expect(container.firstChild).toMatchSnapshot() - }) - it('should handle ref forwarding', () => { const ref = { current: null } diff --git a/src/renderer/src/components/__tests__/__snapshots__/Scrollbar.test.tsx.snap b/src/renderer/src/components/__tests__/__snapshots__/Scrollbar.test.tsx.snap index 63a08d758d..4bd423378f 100644 --- a/src/renderer/src/components/__tests__/__snapshots__/Scrollbar.test.tsx.snap +++ b/src/renderer/src/components/__tests__/__snapshots__/Scrollbar.test.tsx.snap @@ -33,7 +33,7 @@ exports[`Scrollbar > rendering > should match default styled snapshot 1`] = ` } .c0::-webkit-scrollbar-thumb:hover { - background: transparent; + background: var(--color-scrollbar-thumb-hover); }