Automatic test not working on markdown previewer project

Description

I used react and sass to make the project. It works as expected when I use my page and all elements with specific id’s from the user stories exists in my code, but it still says I failed
Here’s the link to my codepen: https://codepen.io/e2ma/pen/xxaOLvw
And a screenshot of the test:




Just because you pass an id prop to the ReactMarkdown component, does not mean it gets added to an element somewhere.

Look at your browser’s console and you will see no element with id="preview". I do see an element with id="preview-container" though.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.