Skip to content

Conversation

prxg22
Copy link
Contributor

@prxg22 prxg22 commented Aug 29, 2020

this PR makes render's example in https://testing-library.com/docs/react-testing-library/cheatsheet correct by using findAllByText to wait for multiple elements.

@prxg22 prxg22 force-pushed the docs/fix-react-cheatsheet-example branch from e3ab3b4 to 08b50dc Compare August 29, 2020 15:11
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot: We also need to update the destructured method on line 20

@nickserv
Copy link
Member

Maybe we should also remove the explanation of what's returned by render (generally not needed with screen and the API docs detail this anyway) and use userEvent.click

@alexkrolick alexkrolick merged commit b883b44 into testing-library:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants