Run Functional Tests using a Headless Browser

i can´t pass the test “Run Functional Tests using a Headless Browser” and i don´t get why,please help

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36.

Challenge: Run Functional Tests using a Headless Browser

Link to the challenge:

Welcome, there.

This is where the issue is:

const Browser = require("zombie");'';

Try to figure out what Zombie.js does, and why you add your site URL to the site property.

EDIT: Also, I would expect you to see errors in the Repl console, giving you more information.

Also, for future posts, please provide a link to your project code, as this helps other Campers more easily help you.

Hope this helps

1 Like

hi,thanks for your reply!
this is the link to my project:
these are the errors displayed in the Repl console:

Functional Tests with Zombie.js
1) “before all” hook

22 passing (2s)
1 failing

  1. Functional Tests with Zombie.js “before all” hook:
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure “done()” is called; if returning a Promise, ensure it resolves.
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

could you elaborate in why is wrong that line of code you pointed out?


Sure. Zombie.js mimics a user, by accessing the site given, and performing the functions described (clicking on buttons, making requests, etc.). As such, which URL would you give a user to your site?

thanks!i got it right this time!could you recommend me some documents on Zombie.js to dig deeper?

Well done.

I would not know anything other than the official docs:

Personally, I never find myself using it.

Keep it up :+1:

1 Like