* 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.
()
| 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 | } |
no outgoing calls
no test coverage detected