I have been working for Pomodoro Clock project with React as per requirements specified here.
Here is my Codesanbox link.
As per my understanding, I have implemented all the user stories, but 3 tests seems failing in the test suite and I am unable to figure out why so.
The errors seems to indicate that a new timer is not started after session/ break timer has ended and there is not a string in the UI to indicate the timer change.
But visually in the browser, these functionalities seem to work fine.
I guess, in Timer component (Timer.js file), the timer length and timer mode label (session/ break) is toggled in useEffect hook which is been invoked on next render whereas it is expected to toggled in current render as per the tests.
Please help for finding the issue and possible approaches for fixing.