I’ve tried with my code and when it didn’t worked I’ve copied the code from the guide directly but it is still not passing.
What could be the reason? I do not have assert.fail() anywhere.
I just ran into the same issue, though I’m only getting the “expected undefined to equal ‘passed’” message and not any of the “Cannot read property” messages.
I believe the problem is that the freeCodeCamp challenge tests expect you to use the browser.assert.element function, but with the arguments of the browser.assert.elements function. The former takes only one argument, while the latter takes two arguments. As far as I can tell, it is not currently possible to complete the challenge as intended.