You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`waitForElement` has been deprecated. Use a `find*` query (preferred:
https://testing-library.com/docs/dom-testing-library/api-queries#findby) or
use `waitFor` instead (it's the same API, so you can find/replace):
https://testing-library.com/docs/dom-testing-library/api-async#waitfor
Specifically, the suggestion to "use waitFor instead (it's the same API, so you can find/replace)". I tried doing a find/replace and ran into a bunch of errors, because they are not equivalent: waitForElement's promise will not resolve until you return something truthy.
The text was updated successfully, but these errors were encountered:
The current deprecation warning is misleading:
Specifically, the suggestion to "use
waitFor
instead (it's the same API, so you can find/replace)". I tried doing a find/replace and ran into a bunch of errors, because they are not equivalent:waitForElement
's promise will not resolve until you return something truthy.The text was updated successfully, but these errors were encountered: