25 + 5 (Pomodoro) Clock failing Audio test 1 [SOLVED]

Seeing as I was struggling with this for two hours I think it’d be good to add this to the forum.

Audio test #1 (or test 27) kept failing with this error:

#1. 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

I’ve found that I was only playing the sound after the breaktime had ended (I misinterpreted this User Story #26), while it had to be after counting down both the session and the break time.