How do i run a test on codepen.io

How do i run a test on codepen.io
0

#1

i am not getting that option to run test on my pen in full or any other view.
here is link my tribute page


#2

You can put:

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

at the bottom of your html and then use the green hamburger in the upper left. Alternatively you could load the js in your settings/js


#3

it worked thank you very much :grinning:


#4

Hi to both!

I was having the same problem and I could finally fix it thanks to your contribution with the Tribute page, but now I am having the same problem with the survey form and when I try to implement the solution Kevin mentioned it doesn’t work. So I came back to my tribute page to see what I was doing wrong and it’s not working there either. I try to load it in the js settings but it does not work either.

Also, I see no green hamburger in codepen :frowning: . I would really appreciate it if you could help me. Thanks a lot!


#5

Can you post a link to your pen?


#6

Of course Kevin, here it is https://codepen.io/Lospy/pen/oyRbVQ


#7

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>

#8

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!


#9

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


#10

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.


#11

It worked for me too. Thanks you


#12

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.