Created
March 28, 2020 20:23
-
-
Save paigen11/e61e4d648b17c710f2bb7814f4fae312 to your computer and use it in GitHub Desktop.
Async example using waitForElement before searching the DOM for a button using React Testing Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const orderButton = await waitForElement(() => container.getByTestId('order-submit-button')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment