Personal Portfolio Webpage User Story #10 error

10. Additionally, the navbar should contain link () elements with the class of “nav-link”. There should be one for every element with the class "main-section.

Getting a error here not sure how to solve.

HI !
After you run your tests.
click the red button and read what error is .

In your case it is →

There should be one .nav-link for every element with the class of "main-section", and every .nav-link should be within #navbar : expected 1 to equal 5

if you don’t understand this error ask again!

I’ve tried adding <a class="nav-link"></a> in the section and also the main-selection class. And it still gives me the #10 error.

  • The .main-section elements should contain at least 5 li items total (not each).

  • 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 .

  1. You need to add few more <a></a> elements
  2. you should have 5 clickable links in your menu.

I figured out what was the problem. I’m so stupid I was running “Technical Documentation Page” as a test that’s why it was giving me that error. Basically I was running the wrong test.

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