Quote Machine Test #9

Hey Guys,

All the tests are passing except for #9, even though I’ve marked it with the id of author.

I’ve tried moving the id tag around, but to no avail. I feel like I don’t quite understand the test fully and maybe that’s why I’m not getting it.

What do you think?

Here’s my repl: https://repl.it/@Hazetheai/Quotebox

Thank you!

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36.

Link to the challenge:

Just a wild guess; but since User Story #9 requires that

My quote machine should fetch the new quote’s author when the #new-quote button is clicked and display it in the #author element.

could it be because the test is expecting to see a different author than the current one every time #new-quote button is pressed and your quote machine only changes to a new author when user clicks the ‘New Author’ button (which is not part of the tests)?

What does the test failure message say?

1 Like

Aha! You’re right! I just moved a function call, so that requesting a new quote also changes the author and it’s all working.

Thank you so much!

1 Like

No problem! Awesome quote machine btw :+1:

1 Like