You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the rc-select and would like to add some tests to mye code.
I found a solution on stackoverflow using @testing-library/react'.
However, the second test- it('should call onChange when the first option is selected', async () => { , I cannot get to work.
I get the error:
Error: Unable to find an element with the text: Mocked option 1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
I am using the rc-select and would like to add some tests to mye code.
I found a solution on stackoverflow using @testing-library/react'.
However, the second test-
it('should call onChange when the first option is selected', async () => {
, I cannot get to work.I get the error:
I tried changing out waitFor with waitForElement.
Code (from Stack overflow)
https://stackoverflow.com/questions/41991077/testing-react-select-component
The text was updated successfully, but these errors were encountered: