I don’t know why I’m unable to pass " Run Functional Tests using a Headless Browser" and, also, " Run Functional Tests Using a Headless Browser II" from " Quality Assurance and Testing with Chai".
I have spent a long time looking for a solution (in this forum and also in internet), but the problem is still there.
There was a bug affecting these two parts which was corrected recently. Maybe this is the key to solve the problem. However, I cloned the code which freeCodeCamp provides to solve the challenges. So, it doesn’t make sense that this base code is wrong.
Well, I have just submitted the project again using Chrome and it’s working in both challenges now. Quite strange to be honest. Maybe I had something opened when I tried this morning which was interceding.
I have submitted it more than once and it worked every time.
Well, next time something like this happens, I will have into consideration that restarting the browser can fix the problem.