Headless browser not passing

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.text('span#name', 'Cristoforo');
  browser.assert.text('span#surname', 'Colombo');
  browser.assert.elements('span#dates', 1);


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:

Could you link to your code on replit?

Yes… please check below link

Looks like you have one additional test in the suite, what is confusing checking on page. Remove or comment out the Submit the surname "Polo" in the HTML form test.

Thanks a lot buddy. this solution has worked .

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