Tell us what’s happening:
I thought that I followed the instructions exactly.
- Immediately after the Browser declaration, I added my specific site.
- At the root level of the functional tests suite, I instantiated a new instance of the Browser object.
- And I’m using the suiteSetup hook only once at the beginning of the test suite.
Why can’t I pass the test? My code is below. Does anybody know why?
const Browser = require('zombie');
Browser.site = 'https://boilerplate-mochachai.technoaudrey.repl.co';
suite('Functional Tests with Zombie.js', function () {
this.timeout(5000);
const browser = new Browser();
suiteSetup(function(done) {
return browser.visit('/', done);
});
Your project link(s)
solution: boilerplate-mochachai - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Challenge: Quality Assurance and Testing with Chai - Simulate Actions Using a Headless Browser
Link to the challenge: