Challenge not working: Run Functional Tests using a Headless Browser

Tell us what’s happening:

So I have been stuck on the Mocha Chai challenges Run Functional Tests Using a Headless Browser I (this one is passed somehow, but when I try again now, I can’t pass it again) and II. The tests work on my, but when I try to validate the challenge in FreeCodeCamp, only the first tests passes.

I am convinced this is an issue with FreeCodeCamp itself rather than my code, but I don’t know. I also checked the other similar topics in the forum but none has solved my issue.

Your code so far


Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0.

Challenge: Run Functional Tests Using a Headless Browser I & II

Link to the challenge:

Hey there,

We recently restructured the boilerplate for this section, and it looks like you might be using the old boilerplate.

You should be using this boilerplate:

Thank you! I’m going to try with the new boilerplate. I hope it works.