Replies: 1 comment
-
The userEvent API is asynchronous and needs to be awaited:
|
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.
-
Apologize if this has already been asked, but having a hard time asserting that menu items are present on trigger click using react-testing-library. Here's basic component:
And my test:
I understand that the component is tested, but my app will have specific logic for items that I need to test.
Beta Was this translation helpful? Give feedback.
All reactions