I am unable to use fireClick.mouseOver(tab) using for testing tooltip on tab hover.
Below is the code snippet.
it('should handle change on hover of tab', () => {
const {getByTestId, getByRole} = renderComponent('Draft');
const tab0 = getByTestId('tab-0');
fireEvent.mouseOver(tab0);
expect(getByRole('tooltip')).not.toBeNull();
}
I am getting exception as "document.createRange is not a function"
However fireEvent.click(tab) is working good.