How do I show a Shadcn Tooltip in a testing environment? #5293
Replies: 1 comment
-
Found the answer. Using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to open up my Shadcn Tooltip in my testing environment so I can test that it opens up on hover and displays the correct text.
As a simple example, I have this code to test:
and here is my test:
But
getByText()
always fails to find the Tooltip text, which appears to be because the Tooltip is never opened. How can I open a Tooltip in my testing environment?Beta Was this translation helpful? Give feedback.
All reactions