Codepen Test Suite

Good morning everyone. Hope you’re all having a good day.

I’m taking the Front End Development Libraries course and I’m already finishing the Random Quote Machine project.

I used the Codepen template provided to use the test suite, and I was able to access it, but when I use react to render elements I can no longer access the “tester”.

If anyone knows what might be going on, I’d apreaciate some help, and here’s the link to the project if needed:

Thanks in advance.

It looks like it’s because you’re rendering your app to the document body.
If you add a div to the HTML doc and render to that instead, then the test suite should also show.

2 Likes

THANK YOU SO MUCH.
I can’t believe it was that simple :rofl:

1 Like