diff --git a/web/app/components/workflow/block-selector/__tests__/tabs.spec.tsx b/web/app/components/workflow/block-selector/__tests__/tabs.spec.tsx new file mode 100644 index 0000000000..6056c7379b --- /dev/null +++ b/web/app/components/workflow/block-selector/__tests__/tabs.spec.tsx @@ -0,0 +1,132 @@ +import { fireEvent, render, screen } from '@testing-library/react' +import * as React from 'react' +import Tabs from '../tabs' +import { TabsEnum } from '../types' + +const { + mockSetState, + mockInvalidateBuiltInTools, +} = vi.hoisted(() => ({ + mockSetState: vi.fn(), + mockInvalidateBuiltInTools: vi.fn(), +})) + +vi.mock('@/app/components/base/tooltip', () => ({ + default: ({ + children, + popupContent, + }: { + children: React.ReactNode + popupContent: React.ReactNode + }) => ( +