I’m working on the 25+5 clock. Though the app works as expected from the functional pov, I’m unable to pass the remaining 4-5 tests in the test suite.
From the functional perspective everything is working as expected with this version of the application still I can’t point out why exactly is the test suite throwing errors(don’t believe me, see for yourself).
#Timer
7. I should not be able to set a session or break length to > 60.
10. If the timer is running and I click the element with id=“start_stop”, the countdown should pause.
12. When a session countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of “timer-label” should display a string indicating a break has begun.
14. When a break countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of “timer-label” should display a string indicating a session has begun.
#Audio
- 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
Here is my code: https://codepen.io/donjoe21915/pen/VwRPVEb (You can check for yourself that it works correctly)
In the last three failed tests the test suite throws ‘Timer has not reached 00:00.’ but the timer does reach 00:00, can’t point out which part of code is causing this problem.
The app fulfills all the aforementioned criteria in application. What can I do to pass the remaining tests in the test suite?