How do i run a test on codepen.io

Well, there are some serious problems with your HTML.

For example, you have two opening main tags. You have lines like <div id=emailfield> - that id should be in quotes. There are a lot of little things like that.

But I think the big problem is that you are using a different url. This is what I used:

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

Hi Kevin,

Thanks a lot for your corrections. Nevertheless, where dud you find that url? In the specifications of the project the one that I find is:

https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js

instead of

https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js

Should I use yours for all of the upcoming project tests?

Thanks!

1 Like

I think your second link is also correct. I’ve used it without a problem.

both will work the same way as same js file is stored at both the sites.
EDIT: okay so the one provided in the specification is NOT AVAILABLE .
so we are left with the link that kevin provided.

2 Likes

It worked for me too. Thanks you

So right now, <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> works only if added at the top of the HTML section of the pen.

https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js works only if added to the JS settings as an external source.

If you switch the two, the test suite wont appear.

1 Like

Whenever I run tests on Survey Form, it says you have only completed 2 tests out of 17, even though I have included all the things in the CSS and HTML file.
Can anyone help me to solve this issue?
My pen is here,

I encountered this very same thing early on! You need to select the test suite drop down option that matches the project you’re working on. It looked like you might have been trying to run the ‘Survey Form’ test suite against your Tribute Page project.

20%20PM

Good luck!

1 Like

I was wondering the same thing. Thanks for this one Kevin.

Kevin I added this. I don’t see hamburgers. I went into setting but did know what to do once I got there.

https://codepen.io/diane-nelson-trotter/pen/rRqpOG?editors=1100

Its a green colour icon present in the top-left corner. Check it!

1 Like

I was getting an error that the should be above the . I continued to get the error when I moved it above . I saw where someone put it at the top so I tried that. I got no html errors but my project disappeared and there is just a blue screen.

Kevin the missing word is script in my last post.

Can someone please help?!?! I put the script where it is supposed to be.

https://codepen.io/PapaGolf/pen/LYYbQVv

your test suite work. select your project from the drop down menu, then press “Run Tests”, and then on the number of passed tests to see which ones passed and which ones didn’t

:grimacing::grimacing::grimacing::grimacing: Thank you so much!

A post was split to a new topic: My first project for fcc web design

https://codepen.io/mohmammed95/pen/GRjRqOJ

Hi @mohmammed95!

This topic has not been active for over a year. Please create a new topic with your question and we can assist you there.

Thanks!