Tell us what’s happening:
Describe your issue in detail here.
I have added proper code and also getting proper status in replit in green showing passed all steps. But when i submit my project url in solution link it is showing me an error as below.
// running tests You should assert that the text inside the element
span#name is Cristoforo’
You should assert that the text inside the element
span#surname is ‘Colombo’
my code so far
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();
});
});
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Challenge: Run Functional Tests Using a Headless Browser
Link to the challenge: