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.
Thanks @jenovs, it seem to work in Firefox after the fix with all tests passing. But when I checked the app in Chrome while running tests, there seem multiple errors in the console with several tests failing.
As per log, there seem issue with something stating like
The play() request was interrupted by a call to pause()
This seems to be as per design of the Audio web API for the Chrome.
Let me know if you got any idea to fix this as well