Hover from the React testing library in the Tooltip component is not working #2133
-
Hello everyone. I'm trying to write a test using the React Testing Library to view a hint on hover. When using hover from UserEvent zag.js does not change the state of the Tooltip in any way, that is, the tooltip does not open. I also tried to use fireEvent using the MouseEvent('mouseover') event and used fireEvent.focus(), but the situation persists. What to do? |
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
Dec 23, 2024
Replies: 1 comment
-
Please use this code as reference |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
segunadebayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please use this code as reference
https://github.com/chakra-ui/ark/blob/main/packages/react/src/components/tooltip/tests/tooltip.test.tsx