API Reference / @gtkx/testing / waitForElementToBeRemoved
Function: waitForElementToBeRemoved()
waitForElementToBeRemoved(
elementOrCallback,options?):Promise<void>
Defined in: packages/testing/src/wait-for.ts:143
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>