Skip to content

Commit

Permalink
test: fix failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
miracles1919 committed Jun 28, 2023
1 parent 42baf66 commit 190c44b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import React, { useState } from 'react'
import { render, testA11y, fireEvent, waitFor, actSleep } from 'testing'
import { render, testA11y, fireEvent, actSleep, act } from 'testing'
import CascadePickerView from '..'
import { options } from '../demos/options-data'

const classPrefix = `adm-picker-view`

describe('CascadePickerView', () => {
test('a11y', async () => {
await waitFor(() => testA11y(<CascadePickerView options={options} />))
await act(async () => {
await testA11y(<CascadePickerView options={options} />)
})
})

test('controlled mode', async () => {
Expand Down

0 comments on commit 190c44b

Please sign in to comment.