Tell us what’s happening:
in Repl.it, My code appears to be passing the challenge in the terminal, but not when I submit to freecodecamp. Alternatively, when I try to run it locally on VSCode, it wont pass in the terminal nor on freecodecamp. I think it doesn’t like the line Browser.localhost('example.com, process.env.PORT || 3000);
is broken. Am I doing some
Your code so far
Heres a snippet, I’ve tried different values for Broswer.site
const Browser = require("zombie");
Browser.site = 'https://boilerplate-mochachai-2.jacklmbrt07.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.element('span#dates', 1);
done();
});
});
Again, this passes in the Repl.it terminal but not on the fcc submission for challenge 23/25. Am I doing something wrong or is FCC wrong?
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
.
Challenge: Run Functional Tests using a Headless Browser
Link to the challenge: