import { render, screen } from '@testing-library/react'; import { describe, expect, it, vi } from 'vitest'; import { ActionDropdown } from './ActionDropdown.tsx'; type Props = React.ComponentPropsWithoutRef; const TEST_ID = 'ActionDropdown'; const TestActionDropdown: React.FC> = (props) => { return ( ); }; describe('ActionDropdown', () => { it('should render', () => { render(); expect(screen.getByTestId(TEST_ID)).toBeInTheDocument(); }); it('should include custom data attributes', () => { render(); expect(screen.getByTestId(TEST_ID)).toHaveAttribute('data-foo', 'bar'); }); it('should contain a custom class name', () => { render(); expect(screen.getByTestId(TEST_ID)).toHaveClass('foo'); }); });