I’ve completed my Pomodoro Timer and, objectively, it fulfills all 28 user stories. However, running the tests (adding bundle.js to the list of external scripts in CodePen), I fail 12 of them, all for either “Script errors” or because the test expects some integers to be 3 or 4 or 5 off of what it thinks they should be.
Is my code just running too slowly because I’m trying to load Redux, React, jQuery, Bootstrap, and Font Awesome all at once? Does the slowness of my internet connection affect this?
I tried removing the Bootstrap CSS and JS links from the CodePen, and the same tests failed.
One odd thing about my timer is that I made
<input>s with the length value in their
value attributes instead of making them normal text elements. This doesn’t seem to affect the tests, though, because changing them to
<div>s that display the length value inside of them doesn’t change any of the tests I fail. And for that matter, changing the FCC example’s
<input>s and moving the length values to
value attributes didn’t stop it from passing all the tests.
One thing I’m seeing now that I’m looking at the example go through the tests is that the tests are unable to make my timer run at super-speed. Why would that be? I’m just using
setInterval to tick the clock down, and I read elsewhere that that’s what the test manipulates to speed things up.