From e5e65f583469679020680deb7533c667c71b6666 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Fri, 14 May 2021 14:36:04 +0700 Subject: [PATCH 1/2] docs: format the deprecation section in DOM cheatsheet --- docs/dom-testing-library/cheatsheet.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/dom-testing-library/cheatsheet.mdx b/docs/dom-testing-library/cheatsheet.mdx index 6a5614bfb..13bf7b699 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. `findBy` and `findAllBy` queries are async and +> retry until either a timeout or if the query returns successfully; they wrap +> `waitForElement` > - **waitForDomChange** (Promise) retry the function each time the DOM is > changed From 3576ea45e8011d8e4b31c14dab67a4d9152b3d7f Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Tue, 25 May 2021 11:50:15 +0700 Subject: [PATCH 2/2] Update docs/dom-testing-library/cheatsheet.mdx Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> --- docs/dom-testing-library/cheatsheet.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dom-testing-library/cheatsheet.mdx b/docs/dom-testing-library/cheatsheet.mdx index 13bf7b699..b191c7e78 100644 --- a/docs/dom-testing-library/cheatsheet.mdx +++ b/docs/dom-testing-library/cheatsheet.mdx @@ -90,8 +90,8 @@ 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 +> 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