I am having an issue with the objective of the product landing page. Here is the 5th objective: When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.’
Here is the error message: The .nav-link with href="#about" is not linked to a corresponding element on the page: expected null to not equal null.
@trialenderror 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 failing message says
When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.'
The .nav-link with href="#about" is not linked to a corresponding element on the page : expected null to not equal null
AssertionError: The .nav-link with href="#about" is not linked to a corresponding element on the page : expected null to not equal null
That was the exact reason why I had the problem. Thanks a lot for seeing and letting me know!! I am curious why it affects the ‘‘nav-bar’’ instead of the ‘‘image’’
Hello Roma, thanks for the warning. I indeed read the whole message but still couldn’t solve the problem. But you are right, I should have shared the entire line of error. Have a nice day.