Tell us what’s happening:
The last three tests in Quality assurance and testing with Chai not passing.
I have all 24 tests passing in my repl.it.
Freecodemap however doesn’t accept it.
I have exhausted all the results in freecodecamp forums to no avail.
Link to my repl.it
Your code so far
const Browser = require("zombie");
Browser.site = 'https://boilerplate-mochachai.ofk8vb.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', () => {
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 browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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: