Tell us what’s happening:
The last two test are not passing even I’m getting the following error:
AssertionError [ERR_ASSERTION]: No open window with an HTML document
at Browser.field (/rbd/pnpm-volume/e8239455-1801-4804-baee-7e96bd72875f/node_modules/zombie/lib/index.js:598:5)
at Browser.fill (/rbd/pnpm-volume/e8239455-1801-4804-baee-7e96bd72875f/node_modules/zombie/lib/index.js:646:24)
at Context. (tests/2_functional-tests.js:80:15)
at processImmediate (node:internal/timers:463:21)
You will have to update your Replit with the code you have locally or post a repo with the code. We can’t help if we can’t see the code.
Also, I don’t know why all your unit tests are set to explicitly fail in your Replit. All the steps should build up to a single passing app that is able to pass all the challenges. There is no point in having multiple versions of this with code that will only pass specific challenges.
Hi there, After making the necessary changes the code still does not pass but I’m getting the following error message:
23 passing (882ms)
2 failing
Functional Tests with Zombie.js
“Famous Italian Explorers” form
Submit the surname “Colombo” in the HTML form:
AssertionError [ERR_ASSERTION]: No INPUT matching ‘surname’
at Browser.fill (node_modules/zombie/lib/index.js:647:5)
at Context. (tests/2_functional-tests.js:89:15)
at process.processImmediate (node:internal/timers:471:21)
Functional Tests with Zombie.js
“Famous Italian Explorers” form
Submit the surname “Vespucci” in the HTML form:
AssertionError [ERR_ASSERTION]: No INPUT matching ‘surname’
at Browser.fill (node_modules/zombie/lib/index.js:647:5)
at Context. (tests/2_functional-tests.js:103:15)
at process.processImmediate (node:internal/timers:471:21)
The done callback should not be invoked () inside browser.visit()
Browser.site should point to the Replit.
Move the Browser() constructor inside the test code after the timeout delay. You can try lowering the delay to 4000 as well (this specific test is much more reliable running locally than on Replit BTW).