Does anyone know what I am doing wrong with this code regarding Run Functional Tests Using a Headless Browser?

I keep getting the All tests should pass error after running the code.

My code so far: boilerplate-mochachai - Replit

If anyone could tell me what I am doing wrong, and what the code should look like, that would be great!

You need to add the NODE_ENV=test to the environment variables using the Reaplit Secrets

Replit Secrets

Your syntax for the zombie code is not correct. Look more closely at the example code on the challenge page.

In the suiteSetup code done is a callback, do not invoke it ()

suiteSetup(function(done) {
  return browser.visit('/', done);
});

My current code: boilerplate-mochachai - Replit

If you or anyone else could tell me what I am doing wrong, and if there is a step by step solution to solve this problem, that would be great!

You seem to have moved on to the next challenge in your code. Your code should be passing the step you posted about.


As for the next step

This code

suiteSetup(function(done) {
  return browser.visit('/', done);
});

Should not be inside the 'Submit the surname "Colombo" in the HTML form' test code. And your syntax for the test code is wrong. Look at the example code again. It is using .then() on browser.fill() and inside the callback does the browser.pressButton code.