MCPcopy
hub / github.com/getsentry/sentry / waitForModalToHide

Function waitForModalToHide

tests/js/sentry-test/reactTestingLibrary.tsx:427–431  ·  view source on GitHub ↗

* Helper that waits for the modal to be removed from the DOM. You may need to * wait for the modal to be removed to avoid any act warnings.

()

Source from the content-addressed store, hash-verified

425 * wait for the modal to be removed to avoid any act warnings.
426 */
427 function waitForModalToHide() {
428 return rtl.waitFor(() => {
429 expect(rtl.screen.queryByRole('dialog')).not.toBeInTheDocument();
430 });
431 }
432
433 return {...result, waitForModalToHide};
434}

Calls

no outgoing calls

Tested by

no test coverage detected