Can't find the problem HELP!

Tell us what’s happening:
Describe your issue in detail here.

Hey everyone! Im trying to complete these tasks https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/run-functional-tests-using-a-headless-browser
&
https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/run-functional-tests-using-a-headless-browser-ii

and couldn’t pass, even one of them. I even tried to copy the solution but tests does not pass.

Your code so far

suite(’“Famous Italian Explorers” form’, function () {
// #5
test(‘Submit the surname “Colombo” in the HTML form’, function (done) {
browser.fill(‘surname’,‘Colombo’).then(()=>{
browser.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 the surname “Vespucci” in the HTML form’, function (done) {
browser.fill(‘surname’,‘Amerigo’).then(()=>{
browser.pressButton(‘submit’,()=>{
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Safari/605.1.15

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.