Jest Test case failing in Next.Js Project
Unanswered
Sporting Lucas Terrier posted this in #help-forum
Sporting Lucas TerrierOP
I've added my component and the test case. The first test case is passing but on the second one i get this error:
TestingLibraryElementError: Unable to find an element by: [data-testid="play-button"]
Maybe because there is conditional rendering going on due to which the button isnt available when we are trying to test???
TestingLibraryElementError: Unable to find an element by: [data-testid="play-button"]
Maybe because there is conditional rendering going on due to which the button isnt available when we are trying to test???