Portfolio Page - error User Story #8

  1. My portfolio should have a link with an id of “profile-link”, which opens my GitHub or FCC profile in a new tab.

expected null to not equal null
AssertionError: 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 a. (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:657:124987)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:38668
at i.g.run (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:38963)
at N.runTest (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:45686)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:46651
at o (https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:45075)
at https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js:598:45145

I really can’t figure out how to fix it.
I already added an id of “profile-link” but it still doesn’t work :frowning:

Link to my codepen is https://codepen.io/patriciabrsk/pen/zYKwqqY

Hello there,

You need to be careful which elements you are giving attributes:

<a id="profile-link" href="https://github.com/patriciabrsk">
  <i class="fab fa-github" target="_blank"></i>

An i element cannot really have a target attribute, and is why I can see test 8 failing.

After fixing that, all tests passed on my end.

Hope this clarifies.

:woman_facepalming: :woman_facepalming: :woman_facepalming:

Thanks a lot!!!

I’m still such a beginner…

Do not fuss about it. I would assume every programmer has been there, and needed to learn the lesson.

Just keep in mind, if you are stuck, be sure to read the error messages carefully, and slowly. Be sure you can understand what the tests are asking for (as best as provided), then isolate as much code as possible.

Take away: Programming is immensely specific

Keep it up :+1:

1 Like