diff --git a/docs/dom-testing-library/cheatsheet.mdx b/docs/dom-testing-library/cheatsheet.mdx index 6a5614bfb..b191c7e78 100644 --- a/docs/dom-testing-library/cheatsheet.mdx +++ b/docs/dom-testing-library/cheatsheet.mdx @@ -90,9 +90,9 @@ See [Async API](dom-testing-library/api-async.mdx). Remember to `await` or > - **wait** (Promise) retry the function within until it stops throwing or > times > - **waitForElement** (Promise) retry the function until it returns an element -> or an array of elements -> - `findBy` and `findAllBy` queries are async and retry until either a timeout -> or if the query returns successfully; they wrap `waitForElement` +> or an array of elements. The `findBy` and `findAllBy` queries are async and +> retry until the query returns successfully, or when the query times out; they wrap +> `waitForElement` > - **waitForDomChange** (Promise) retry the function each time the DOM is > changed