Test Error(not passing the test)

Technical Documentation Page

Test Errors

i have implemented the necessary User Stories, but i keep getting error notifications when i run the Test.

Please can someone help me out. this is the link to the page Technical Documentation Page


I think I have managed to find the errors:

  1. line 53- your id has #:
<section class="main-section" id="#What_you_should_already_know">
  1. if else section- you only need underscores when there are spaces (needs changing in both places):
<li><a class="nav-link" href="#if_..._else_statements">if...else statements</a>
<li><a class="nav-link" href="#if...else_statements">if...else statements</a>//correct version

Hope this helps :slight_smile:

1 Like

Check the ids of the main-section elements, as the error message points out:

Each element with the class of “main-section” should also have an id that corresponds with the text of each contained within it. Any spaces should be replaced with underscores (e.g. The that contains the header “Javascript and Java” should have a corresponding id=“Javascript_and_Java”).
AssertionError: Some “main-section” elements are missing the following ids (don’t forget to replace spaces with underscores!) : What_you_should_already_know,if…else_statements : expected 2 to equal 0

thank you so much!

that was indeed the problem, your solution worked just fine