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 11import { fuzzyMatches , matches , makeNormalizer } from './matches'
2- import { waitForElement } from './wait-for-element '
2+ import { waitFor } from './wait-for'
33import { getConfig } from './config'
44
55function getMultipleElementsFoundError ( message , container ) {
@@ -65,13 +65,10 @@ function makeGetAllQuery(allQuery, getMissingError) {
6565}
6666
6767// 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.
6969function 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 )
7572}
7673
7774function buildQueries ( queryAllBy , getMultipleError , getMissingError ) {
You can’t perform that action at this time.
0 commit comments