-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Water - Beatrice #31
base: master
Are you sure you want to change the base?
Water - Beatrice #31
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work Beatrice, you have a fully functional Exquisite corpse game and you got all the tests to pass. Well done.
You are failing a few tests, the reasons of which is just because you're hiding content with CSS and the tests are still seeing the HTML elements in the resulting page.
@@ -25,12 +64,15 @@ const Game = () => { | |||
{ exampleFormat } | |||
</p> | |||
|
|||
<RecentSubmission /> | |||
<div className={showRecentSubmission() ? 'visible' : 'hidden'}> | |||
<RecentSubmission submission={poem[poem.length-1]}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just note that if poem
is empty this will send undefined
to the prop submission
and that's why you're getting a warning.
<div className="FinalPoem"> | ||
<section className="FinalPoem__poem"> | ||
<div className='FinalPoem'> | ||
<section className={`FinalPoem__poem ${props.isSubmitted ? 'visible' : 'hidden'}`}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're hiding the content based on CSS while the test just assumes it's not rendered at all, which is why the test fails.
Assignment Submission: Exquisite React
Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.
Reflection