I’ve been doing this challenge https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/run-functional-tests-using-a-headless-browser
can’t pass the test called ‘All tests should pass’ even though the rest of them are passed
Here’s my code
test('submit "surname" : "Colombo" - write your e2e test...', function (done) {
let browser = new Browser()
browser.fill("surname", "Colombo").pressButton("submit", () => {
browser.assert.success();
browser.assert.text('span#name','Cristoforo')
browser.assert.text('span#surname','Colombo')
browser.assert.elements('span#dates',1)
done();
});
});
and logs say: AssertionError [ERR_ASSERTION]: No open window with an HTML document
I tried to google it but couldn’t find anything useful