Factual error in Quality Assurance regarding zombie.js

At this topic, the following code snippet is given:

browser.assert.element('span#dates', 1);

And the explanation is:

There is 1 <span id='dates'></span> element.

But, according to the zombie.js documentation of the assert.element() function, the second argument is supposed the be a message and not the number of elements found. To check that an element exists n number of times, assert.elements() should be used.

I hope you can correct this to prevent confusion in the future!

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

Thanks! I’ve added a new issue on GitHub.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.