Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I've created a re-usable Tooltip component using your primitive one, everything works fine but when I'm about to write tests the behavior for checking the unhover event on its trigger won't work.

I've created a simple codesandbox with the component code but for the test, I cannot testing the second part using testing-library.

I've pinned the versions in the codesandbox link above, since I cannot upgrade react libs version to latest but I saw radix-ui should work without any issue also on older versions.

You must be logged in to vote

Replies: 1 comment

Comment options

This looks like a testing-setup issue rather than a Tooltip bug. Unhover requires firing pointer-leave on the trigger and advancing the open/close timers (use userEvent.unhover, fake timers, act). Moving to discussions so perhaps others can weigh in on their setup.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3419 on June 01, 2026 16:16.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.