src/query-helpers.js
function makeFindQuery(getter) {
  return (container, text, options, waitForElementOptions) =>
    waitForElement(
      () => getter(container, text, options),
      waitForElementOptions,
    )
}
function makeFindQuery(getter) {
  return (container, text, options, waitForElementOptions) =>
    waitForElement(
      () => getter(container, text, options),
      waitForElementOptions,
    )
}
function makeFindQuery ( getter ) { return ( container , text , options , waitForElementOptions ) => waitForElement ( ( ) => getter ( container , text , options ) , waitForElementOptions , ) }
this accepts a getter query function and returns a function which calls waitForElement and passing a function which invokes the getter.
this accepts a getter query function and returns a function which calls waitForElement and passing a function which invokes the getter .