My code : https://replit.com/@enoquerogerio/boilerplate-mochachai
I’ve tried everything but I can’t find the solution to this.
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.elements('span#dates', 1);
done();
});
});
});
// #6
test('Submit the surname "Vespucci" in the HTML form', function (done) {
browser.fill('surname', 'Vespucci').then(() => {
browser.pressButton('submit', () => {
browser.assert.success();
browser.assert.text('span#name', 'Amerigo');
browser.assert.text('span#surname', 'Vespucci');
browser.assert.elements('span#dates', 1);
done();
});
});
});
});