Skip to content

Commit e4aa6f9

Browse files
alexkrolickkentcdodds
and
kentcdodds
authored
Update src/queries.js
Co-Authored-By: kentcdodds <kent+github@doddsfamily.us>
1 parent b7b3056 commit e4aa6f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/queries.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ function getByDisplayValue(...args) {
376376
return firstResultOrNull(getAllByDisplayValue, ...args)
377377
}
378378

379+
// wraps the get query with an awaitable
380+
// version that retries until a timeout
379381
function makeFinder(getter) {
380382
return (container, text, options, waitForElementOptions) =>
381383
waitForElement(

0 commit comments

Comments
 (0)