I hope you can help me, I’m deploying the pomodoro clock in local with “create react app” and when I launch the tester the result is 28/29, but if I paste the code in Codepen the result is 22/29.
It may is a bug of the tester? More probably it’s my code but I can’t figure it out.
Can you take a look and give me some tips?
This is the only error in local:
- The audio element with id of “beep” must stop playing and be rewound to the beginning when the element with the id of “reset” is clicked.
and the result:
Audio element was not rewound when reset was clicked. HINT: use the currentTime property of the audio element to rewind.: expected 0 to equal 3.799665
AssertionError: Audio element was not rewound when reset was clicked. HINT: use the currentTime property of the audio element to rewind.: expected 0 to equal 3.799665
at Function.n.equal (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:546:259)
at r. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:622:184806)
at c (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:31654)
at o.f.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:31590)
at m.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:37160)
at s (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:36472)
at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:35947)
at f (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:565:1356)
Fixed the last error, the problem was I didn’t use the currentTime properties for audio and video, so now the problem is the difference between the tests.
The solution was quite simple, I’ve loaded the wrong external scripts in my Pen settings.
So any newbie like me needs it here is the links: