I’m doing the React Testing Library course. While working on the 2nd section, 14th item “Working with Component Libraries” my code fails when trying to test all the “options” from the drop down.
The error message I get is the following:
’ should render correct statuses
TestingLibraryElementError: Unable to find role=“option” ’
I apply the solution Mosh does in the video, but my error persists, I even tried copying the code from the repository and it still fails.
When I inspect the code I see all 3 options do have the "option’ role, so I do not understand what the problem is despite hours of trying today.
My code can be found at: GitHub - Syrathe/ReactTesting: React Testing course with Mosh
Thanks in advance.