Skip to content

API Reference / @gtkx/testing / waitForElementToBeRemoved

Variable: waitForElementToBeRemoved

const waitForElementToBeRemoved: (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?

WaitForOptions

Optional timeout and interval settings.

Returns

Promise<void>

Released under the MPL-2.0 License.