After I check the video of the solution for the extra credit for exercise 03, I found that the unit tests fail. After a little research on StackOverflow I found this answer and I checked the code and
After I compare it with fireEvent, I can say that the problem is that userEvent.click returns a promise. The click event is not executed. You need to wait until the promise is executed before assert
After you add await the test works well and passes it
After I check the video of the solution for the extra credit for exercise 03, I found that the unit tests fail. After a little research on StackOverflow I found this answer and I checked the code and
After I compare it with fireEvent, I can say that the problem is that userEvent.click returns a promise. The click event is not executed. You need to wait until the promise is executed before assert
After you add await the test works well and passes it