How tou use NextUI components with react-testing library #4376
Unanswered
pacoorozco
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I having the same issue. I'm using |
Beta Was this translation helpful? Give feedback.
0 replies
-
To give more context, this is how I was selecting options of the
This approach worked well before but with the new version 2.6.x any other interaction after this, is not working...
Any any help? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm having a lot of troubles to use NextUI components when testing. Imagine you have a form which uses NextUI components and you want to test that the form behaves as expected. I'm using
vitest
andreact-testing
library to implement the tests.One of the most problematic components is
<AutoComplete>
. I would like to be able to select one of the options when testing and submit the form, but it's very tricky. The way I was using in the previous version 2.4 is not working anymore in version 2.6.8. How do you suggest to set values when testing?Beta Was this translation helpful? Give feedback.
All reactions