import { cleanup, fireEvent } from '@testing-library/react'; import { render } from '../../utils/theme-render-wrapper'; import { GRID_ROW_HEIGHT } from '../data-grid'; import { TextWithTooltip } from './text-with-tooltip'; afterEach(cleanup); const text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s"; describe('', () => { it(`Should render successfully`, () => { const { baseElement } = render(); expect(baseElement).toBeTruthy(); }); it(`Should render with alternative title`, () => { const { baseElement } = render( ); expect(baseElement).toBeTruthy(); }); it(`Should render a comma delimited text`, () => { const { getByTestId } = render( ); const textEl = getByTestId('text'); fireEvent.mouseOver(textEl); expect(textEl).toBeTruthy(); }); });