API Reference / @gtkx/testing / waitForElementToBeRemoved
Variable: waitForElementToBeRemoved
constwaitForElementToBeRemoved: (elementOrCallback,options?) =>Promise<void>
Defined in: wait-for.d.ts:22
Waits until the given widget or widgets are detached from the tree. Rejects immediately if the target is already absent when called.
Parameters
elementOrCallback
ElementOrCallback
The widget, array of widgets, or a function returning them to observe for removal.
options?
Optional timeout and interval settings.
Returns
Promise<void>