File tree Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -77,19 +77,21 @@ See [Which query should I use?](guide-which-query.md)
77
77
78
78
## Async
79
79
80
- See [ Async API] ( dom-testing-library/api-async.md )
80
+ See [ Async API] ( dom-testing-library/api-async.md ) . Remember to ` await ` or ` .then() `
81
+ the result of async functions in your tests!
81
82
82
- - ** wait ** (Promise) retry the function within until it stops throwing or times
83
+ - ** waitFor ** (Promise) retry the function within until it stops throwing or times
83
84
out
84
- - ** waitForElement** (Promise) retry the function until it returns an element or
85
- an array of elements
86
- - ` findBy ` and ` findAllBy ` queries are async and retry until either a timeout
87
- or if the query returns successfully; they wrap ` waitForElement `
88
- - ** waitForDomChange** (Promise) retry the function each time the DOM is changed
89
85
- ** waitForElementToBeRemoved** (Promise) retry the function until it no longer
90
86
returns a DOM node
91
87
92
- > Remember to ` await ` or ` .then() ` the result of async functions in your tests!
88
+ > ** Deprecated since v7.0.0:**
89
+ > - ** wait** (Promise) retry the function within until it stops throwing or times
90
+ > - ** waitForElement** (Promise) retry the function until it returns an element or
91
+ > an array of elements
92
+ > - ` findBy ` and ` findAllBy ` queries are async and retry until either a timeout
93
+ > or if the query returns successfully; they wrap ` waitForElement `
94
+ > - ** waitForDomChange** (Promise) retry the function each time the DOM is changed
93
95
94
96
## Events
95
97
Original file line number Diff line number Diff line change @@ -107,20 +107,14 @@ See [Which query should I use?](guide-which-query.md)
107
107
108
108
## Async
109
109
110
- See [ dom-testing-library Async API] ( dom-testing-library/api-async.md )
111
-
112
- - ** wait** (Promise) retry the function within until it stops throwing or times
113
- out
114
- - ** waitForElement** (Promise) retry the function until it returns an element or
115
- an array of elements
116
- - ` findBy ` and ` findAllBy ` queries are async and retry until either a timeout
117
- or if the query returns successfully; they wrap ` waitForElement `
118
- - ** waitForDomChange** (Promise) retry the function each time the DOM is changed
110
+ The [ dom-testing-library Async API] ( dom-testing-library/api-async.md ) is
111
+ re-exported from React Testing Library.
112
+
113
+ - ** waitFor** (Promise) retry the function within until it stops throwing or
114
+ times out
119
115
- ** waitForElementToBeRemoved** (Promise) retry the function until it no longer
120
116
returns a DOM node
121
117
122
- > Remember to ` await ` or ` .then() ` the result of async functions in your tests!
123
-
124
118
## Events
125
119
126
120
See [ Events API] ( dom-testing-library/api-events.md )
You can’t perform that action at this time.
0 commit comments