I’m only one single failing test away from my front end libraries certification!
My Pomodoro Clock only uses React & Font Awesome (I have a bootstrap CDN in there but I didn’t use any bootstrap).
Here’s my Pomodoro Clock + testing suite on Code Pen:
As far as I can tell my clock works perfectly but the testing suite claims that when the timer hits 0, the audio doesn’t play:
- When a countdown reaches zero (NOTE: timer MUST reach 00:00), a sound indicating that time is up should play. This should utilize an HTML5 audio tag and have a corresponding id=“beep”.
Timer has reached zero but audio is not playing while it should.: expected true to be false- AssertionError: Timer has reached zero but audio is not playing while it should.: expected true to be false
But in all of my testing, in every scenario where the timer hits 0, the audio plays reliably. No matter what I do I’m unable to produce a scenario where the audio fails to play.
What makes this scenario more difficult is the fact that the testing suite takes over 5 minutes to run, so I can’t simply tweak random little things and then run the testing suite to try to workaround whatever is getting the test bundle’s knickers in a twist.
Making projects that work perfectly is easy but freeCodeCamp’s testing suite is going to haunt my nightmares for the rest of my life.