Run Functional Tests Using a Headless Browser

Hi! I’m working on the quality assurance projects and for the tests below I’m getting an error for the first test (sometimes this test times out) although all the tests after are passing.
Tests:

  • All tests should pass.

  • Passed: You should assert that the headless browser request succeeded.

  • Passed: You should assert that the text inside the element span#name is 'Cristoforo'.

  • Passed: You should assert that the text inside the element span#surname is 'Colombo'.

  • Passed: You should assert that the element span#dates exist and its count is 1.

I even changed the timeout to 7000 in ‘Functional Tests with Zombie.js’ suite but the problem persists.

Here is the link to my repl: https://replit.com/@redouane1/boilerplate-mochachai

I will be grateful if someone help me find the source of the problem

It appears to be a replit issue currently. I tested your code locally and all but last functional test (you have not completed yet) pass.

Try again a little later when the replit servers are not as busy.

The Zombie tests are super unreliable on Replit. I’d suggest doing it locally or using Glitch.

Could the problem be from Zombie version?