Skip to content

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? ​

WaitForOptions

Optional timeout and interval settings.

Returns ​

Promise<void>