I can't get the last test to pass on this challenge. value = 1

Tell us what’s happening:
Describe your issue in detail here.
I can’t get the last test to pass on this challenge

Your project link(s)

solution: https://replit.com/@drilonuka/boilerplate-mochachai

Your browser information:

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

Challenge: Run Functional Tests Using a Headless Browser

Link to the challenge:

  1. done is passed as a callback to browser.visit (i.e done, not done()) you also have a random 2 after the function call.

  2. The URL you assign to Browser.site is your replit URL but you just have 'https://boilerplate-mochachai.your-username.repl.co' which isn’t correct.

  3. You seem to have added to and changed the structure of the code compared to the starting code. Which may or may not have broken something.

Last I have seen these tests fail a number of times because of timeout issues. If you see the page crash and some error message about timeout exceeding some number you may have to play with the timeout and also run the page multiple times until you see the test pass without the page crashing.


Edit: I would suggest you clone the starter project down locally and move the code to it. It is very consistently passed (with my own code) when I run it locally. Just remember the URL will be http://localhost:3000 for zombie and for the submit.