Skip to content

Commit 721999e

Browse files
committed
Add extra time in the modal stories interaction
1 parent a647caa commit 721999e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/new-components/modal/modal-stories-components.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ function ModalActions(props: WithOptionals<ModalFooterProps, 'withDivider'>) {
253253
export async function openModal({ canvasElement }: { canvasElement: HTMLElement }) {
254254
const canvas = within(canvasElement)
255255
userEvent.click(canvas.getByRole('button', { name: 'Open modal' }))
256+
await new Promise((resolve) => setTimeout(resolve, 2000))
256257
expect(await canvas.findByRole('dialog')).toBeInTheDocument()
257258
}
258259

0 commit comments

Comments
 (0)