Test failing for promodoro

I have finished a basic version of promodoro clock with all the required functionalities except playing the audio
Even though i am updating the clock during reset/start/stop,the tests are failing with timeouts and could not find value 1 of null which arent telling me much
Any help will be appreciated.
Please find my code pen here

Hi,
9 of mys tests are failing even though I can see it working wtih my own eyes.
I have no clue whats going wrong where for the failing tests.

  1. When I click the element with the id of “reset”, any running timer should be stopped, the value within id=“break-length” should return to 5, the value within id=“session-length” should return to 25, and the element with id=“time-left” should reset to it’s default state. Error: timeout of 5000ms exceeded. Ensure the done() callback is being called in this test.

2.When I first click the element with id=“start_stop”, the timer should begin running from the value currently displayed in id=“session-length”, even if the value has been incremented or decremented from the original value of 25. TypeError: Cannot read property ‘1’ of null

What am I doing wrong?

I move your topics together. Please don’t create multiple threads for the same topic.

hi,Sorry for the churn.I posted the second thread as I could not find my first one

I figured out and fixed the problem.
It was a cosmetic error which proved a little frustrating to find out and fix.
I had an extra space in the content section of the timer and my timer was displaying time as ’ mm:ss’ instead of ‘mm:ss’.
The moment I removed the extra s[ace and re ran the tests,my world became a whole lot better.

1 Like