Testing with Chai - Run Functional Tests using a Headless Browser

Tell us what’s happening:
All tests passing locally. All freeCodeCamp checks failing. All assertions are using browser.assert, as by requirements.
Tried to change the Zombie.js version, to swap double quotation with single, not chaining browser.fill and browser.pressButton. All worked locally, but All freeCodeCamp checks keep failing.
Please help.

Your code so far

const Browser = require("zombie");
Browser.site = "https://boilerplate-mochachai.pasqualegugliel.repl.co";

suite("e2e Testing with Zombie.js", function () {
  const browser = new Browser();
  suiteSetup(function(done) {
    return browser.visit('/', done);
  });
  suite('"Famous Italian Explorers" form', function () {
    // #5
    test('submit "surname" : "Colombo" - write your e2e test...', function (done) {
      browser.fill("surname", "Colombo").pressButton("submit", function () {
        browser.assert.success();
        browser.assert.text("span#name", "Cristoforo");
        browser.assert.text("span#surname", "Colombo");
        browser.assert.elements('span#dates', 1);
        done();
      });
    });
    // #6
    test('submit "surname" : "Vespucci" - write your e2e test...', function (done) {
       browser.fill("surname", "Vespucci").pressButton("submit", function () {
        browser.assert.status(200);
        browser.assert.text("span#name", "Amerigo");
        browser.assert.text("span#surname", "Vespucci");
        browser.assert.elements('span#dates', 1);
        done();
      });
    });
  });
});

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.

Challenge: Run Functional Tests using a Headless Browser

Link to the challenge:

1 Like

We’ll be waiting for the fix.

Thanks very much for the support.