[SOLVED] Pomodoro Clock - test's results different in local and CodePen

[SOLVED] Pomodoro Clock - test's results different in local and CodePen
0

#1

Hi everybody,

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?

Update:

This is the only error in local:

  1. 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 https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:38022
at s (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:36472)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:36541
at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:35947)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:570:36359
at f (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:565:1356)

Update 2:

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.

SOLUTION:

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:

React: https://unpkg.com/[email protected]/umd/react.development.js
React-DOM: https://unpkg.com/[email protected]/umd/react-dom.development.js