There was an error while loading. Please reload this page.
1 parent a647caa commit 721999eCopy full SHA for 721999e
1 file changed
src/new-components/modal/modal-stories-components.tsx
@@ -253,6 +253,7 @@ function ModalActions(props: WithOptionals<ModalFooterProps, 'withDivider'>) {
253
export async function openModal({ canvasElement }: { canvasElement: HTMLElement }) {
254
const canvas = within(canvasElement)
255
userEvent.click(canvas.getByRole('button', { name: 'Open modal' }))
256
+ await new Promise((resolve) => setTimeout(resolve, 2000))
257
expect(await canvas.findByRole('dialog')).toBeInTheDocument()
258
}
259
0 commit comments