Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
) * Migrate frim enzyme to testing-library * update text matcher * Fix typo * Update matcher * Refactor fireEvent to userEvent * Brush up test (tooltip won't be rendered) * Refactor setTimeout to findBy in one test * Don't use getElementsByClassName * Don't use nodeName, childNodes * Remove unused event handler * Remove tootip position props * Add test: should render children with additional popover when hovered * Simplify mouse click test * Standardize test cases name * Add test to 'should render children' * Merge two tests for focus * Refactor 'should render children with additional tooltip when hovered' test without and * Rename from `handleClick` to `onClickMock` * Remove unnecessary test 'should show tooltip on delayed mouseenter' * Reactor: should not show tooltip on focus as result of mouse click * Refactor: should respect custom delay prop when showing tooltip * Refactor: should show tooltip when an element is disabled * Refactor: should not show tooltip if the mouse leaves the anchor before the tooltip has shown * Update changelog
- Loading branch information