On the final test for the Audio of the app the following test fails:
- 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.
Audio element was not stopped when reset was clicked.: expected false to be true
AssertionError: Audio element was not stopped when reset was clicked.: expected false to be true
at o. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:531:15281)
at o.e (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:401:182)
at Reflect.get ()
at Object.e [as get] (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:68:1382)
at n.isTrue (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:556:1222)
at n. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:581:184436)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:575:265533
at Kb.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:575:265828)
at CC.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:575:280794)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:575:281730
I have so far tried switching to React 17 and switching browsers, but no luck the test still fails. When I test it for myself it appears to work so I am confused what’s going wrong.
The code can be found in the repo below:
https://github.com/YourFBIAgent/reactjs-25-5-clock
Thanks to all who gave this a read.