Skip to content

Commit

Permalink
test: fix ActionSheet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
awmleer committed Mar 16, 2022
1 parent d4513d0 commit f3ce9fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/action-sheet/tests/action-sheet.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { render, testA11y, fireEvent, waitFor, cleanup } from 'testing'
import { render, testA11y, fireEvent, waitFor, cleanup, sleep } from 'testing'
import ActionSheet, { Action } from '../'
import Button from '../../button'
import type { ActionSheetProps, ActionSheetShowHandler } from '..'
Expand Down Expand Up @@ -157,7 +157,7 @@ describe('ActionSheet', () => {
await waitFor(() =>
fireEvent.click(baseElement.querySelectorAll(`.adm-mask-aria-button`)[0])
)

await sleep(1000)
expect(baseElement.querySelectorAll(`.${classPrefix}`)[0]).toBeVisible()
})

Expand Down

0 comments on commit f3ce9fe

Please sign in to comment.