Tribute page project testing

Tell us what’s happening: I am not sure how you are meant to run the tests to show that your code is working.

I am fairly sure that I have completed this task but haven’t run any tests on the completed code to make sure it works properly. Do we submit our code before running the tests

See CR Tribute page (codepen.io)

Your browser information: Chrome

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

Challenge: Build a Tribute Page

Link to the challenge:

Hi @renners7777 !

Welcome to the forum!

You need to include the test suite in your html.

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

Then you should see it appear.

It looks like you are passing 1/10 tests.
Screen Shot 2022-05-06 at 4.49.03 PM

There are a couple of reasons why are not passing the tests.

No.1: A lot of the tests require the use of ids.
For example, you wrote this for user story 3

   <img-div>

It looks like you created a tag called img-div which is incorrect
But the user story says this:
I should see either a <figure> or <div> element with corresponding id=“img-div”.

If you need help on how to create ids, then review this lesson.

You can also reach back out for additional help.

But that should take care of most of the failing tests.

No.2: Remove the style tags from the css section.

Style tags <style> are html and do not belong in the css section.
you will need to remove those.

Hope that helps! :slight_smile:

Cheers. I’ll give that a try. I’ve only been learning for a week so will make quite a lot of errors to begin with.

1 Like

no worries, we were all beginners once. :slight_smile:

I followed your advice and have not scored 10/10 when running the tests. :grinning:

I meant I did score 10/10!

1 Like

Awesome!
Congrats on passing the tests! :slight_smile:

I would suggest asking for feedback in the #project-feedback section because the community can help review your code and help you level up as a developer :+1:

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