Skip to content

API Reference / @gtkx/testing / waitForElementToBeRemoved

Variable: waitForElementToBeRemoved ​

const waitForElementToBeRemoved: (elementOrCallback, options?) => Promise<void>

Defined in: packages/testing/dist/wait-for.d.ts:24

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>