Put in order · JavaScript and React course · Module 13: Testing React
waitFor syntax in RTL
Arrange the elements of the waitFor syntax with an asynchronous assertion in the correct order:
Items to put in order
- screen.getByText('Done')
- ).toBeInTheDocument()
- await waitFor
- (() => {
- expect(
- })
You can check the correct answer by solving this task in the CodeWorlds game.