-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test component in testing-library? #41
Comments
Sorry for the delay. If you want clicking the button again to close the popover then you can use I'm actually not sure how to trigger a backdrop click in an automated test, right now my own tests call the callback functions directly. I'll investigate this further... Poppers don't have a backdrop, so users would actually see different behavior between |
This is my main component. When I click on the button popover shows notifications. Let's see...
I tried write tests for that:
Maybe it's an issue with animation (during the assertion component it's in the animation process). But I tried delay assertion for example:
But I got the same results.
How to fix it?
The text was updated successfully, but these errors were encountered: