Technical docs project

Hi Everyone! I’m doing my technical docs project. There isn’t an error but on testing, it shows an error I have checked the code multiple times https://codepen.io/uzairasif2002/pen/oNedYda?editors=1100

Welcome to the forums @mianuzair971.
When running the tests there are three errors shown and they are valid.

When a test fails, click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.

The first error message says;

Additionally, the navbar should contain link (<a>) elements with the class of "nav-link". There should be one for every element with the class "main-section".
The element with the id of "navbar" does not contain any elements with the class of "nav-link" : expected 0 to be above 0
AssertionError: The element with the id of "navbar" does not contain any elements with the class of "nav-link" : expected 0 to be above 0

Do you understand what the test is looking for and why it fails?

HINT: (only look if you cannot figure out why it’s failing)

`class=“navlink” is not the same as what the user story says to use which is a class of “nav-link”

1 Like

Thank you very much for your help.

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