Build a Random Quote Machine: can't pass tests 8 & 9

Tell us what’s happening:
I’m trying to create random quote generator using react.
So far i have managed to do that but i’m failing tests 8 & 9 (Both show error:Timeout of 15000ms exceeded. ) and i don’t know why.I would love to get some pointers so i can improve my code.

Your code so far


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine

1 Like

The tester is looking for a clickable element with corresponding id="new-quote", right now your id="new-quote" is on the parent element (a div) of the clickable element that generates the new quote and not the element itself, move that id to the clickable element and it will pass…

2 Likes

Thank you very much Dereje1. I kinda feel bad now for even posting this since it was very simple mistake, i’l try to be more observant.

Actually, it wasn’t as simple to spot, though it may look so in hindsight, no need to feel bad

2 Likes