I am having the problem. please tell me how to solve
at below User Story#5 , I am getting error while testing my code at this User Story#5.
User Story #5: When I click a .nav-link
button in the nav
element, I am taken to the corresponding section of the landing page.
Below is how it showing error:
The .nav-link with href="#infoLinks" is not linked to a corresponding element on the page : expected null to not equal null
AssertionError: The .nav-link with href="#infoLinks" is not linked to a corresponding element on the page : expected null to not equal null
at Proxy.c (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:549:1889)
at Proxy.l (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:431:130)
at Function.n.isNotNull (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:574:1549)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:657:142799
at NodeList.forEach ()
at a. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:657:142605)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:36606
at i.p.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:36901)
at N.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:42814)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:43780
Here is my CodePen