25 + 5 Clock failed at audio test 1

I have been working on this test for a while, but I just can’t pass this test:

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

Timer has reached zero but audio is not playing while it should.: expected true to be false

Live site of my project: React Redux App (zkwong0804.github.io)
Source code: fcc-project-255clock/index.js at main · zkwong0804/fcc-project-255clock (github.com)

My countdown timer logic starts at line 55.
While I’m testing without test suite, my timer seems perform as expected. When the time reached 00:00, label is changed, and sound is played.

I would appreciate if someone could give me a hint on my mistake.

Remove the setTimeout that calls pause on the element. The test will check that property to see if the element has played or not and I’m guessing you calling pause on it is interfering with that.

Hello. I just finished the logic part of the 25 + 5 Clock project and I passed all the test cases. I am using an audio file from a sample project and I have the source of the audio in my project. I just wonder if this counts as plagiarism ?
Here is my project link on Codepen:

No, that is fine, you can use the audio file.

bro it doesn’t pass all test cases in react 18 one test case is failed

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.