Tell us what’s happening:
Replit shows that all the test cases pass, but when I try to submit to freecodecamp it doesn’t work. Can someone help me with this issue? I am struggling with this issue and this is my second day.
const Browser = require("zombie");
Browser.site = 'https://boilerplate-mochachai-4.vitorhugo50.repl.co'; // Your URL here
suite("Functional Tests 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.element('span#dates', 1);
done();
});
});
// #6
test('submit "surname" : "Vespucci" - write your e2e test...', function (done) {
browser.fill("surname", "Vespucci").pressButton("submit", function () {
browser.assert.success();
browser.assert.text('span#name', 'Amerigo');
browser.assert.text('span#surname', 'Vespucci');
browser.assert.element('span#dates', 1);
done();
})
});
});
});
Your project link(s)
solution: https://replit.com/@michaeljordan14/boilerplate-mochachai-1
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Challenge: Run Functional Tests Using a Headless Browser II
Link to the challenge: