File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { fuzzyMatches , matches , makeNormalizer } from './matches'
2
- import { waitForElement } from './wait-for-element '
2
+ import { waitFor } from './wait-for'
3
3
import { getConfig } from './config'
4
4
5
5
function getMultipleElementsFoundError ( message , container ) {
@@ -65,13 +65,10 @@ function makeGetAllQuery(allQuery, getMissingError) {
65
65
}
66
66
67
67
// this accepts a getter query function and returns a function which calls
68
- // waitForElement and passing a function which invokes the getter.
68
+ // waitFor and passing a function which invokes the getter.
69
69
function makeFindQuery ( getter ) {
70
- return ( container , text , options , waitForElementOptions ) =>
71
- waitForElement (
72
- ( ) => getter ( container , text , options ) ,
73
- waitForElementOptions ,
74
- )
70
+ return ( container , text , options , waitForOptions ) =>
71
+ waitFor ( ( ) => getter ( container , text , options ) , waitForOptions )
75
72
}
76
73
77
74
function buildQueries ( queryAllBy , getMultipleError , getMissingError ) {
You can’t perform that action at this time.
0 commit comments