Thanks for your reply. I had changed the placement of the parentheses, following advice from another forum post. I have now changed the code back again but still the same issue.
It’s the setting up of the headless browser which appears to be failing, not the tests which follow…
I rebuilt the whole thing from scratch. I passed the initial headless browser challenge (again) but consistently fail the next challenge with the same error as before.
Strangely, I get the following on FCC…
suite('Headless browser', function() {
test('should have a working "site" property', function() {
suiteSetup(function(done) {
return browser.visit('/', done);
});
assert.isNotNull(browser.site);
});
});
When the suiteSetup function is here, the initial headless browser challenge passes. When I move it anywhere outside the test callback, it fails and I get timeout errors in the console.
The last Zombie tests consistently pass for me locally but fail very often on Replit. Usually with the page crashing and a timeout error. It seems to have something to do with how Zombie is interacting with the site.