ant-design/components/auto-complete/__tests__/demo.test.tsx
kiner-tang(文辉) 9d122a6c10
feat(AutoComplete): AutoComplete support rootClassName (#44055)
* feat: AutoComplete support rootClassName

* feat: AutoComplete support rootClassName

* feat: update snap

* feat: optimize code

* feat: optimize code

* Update components/auto-complete/demo/basic.tsx

Signed-off-by: kiner-tang(文辉) <1127031143@qq.com>

* feat: update snap

* Update components/auto-complete/index.en-US.md

Signed-off-by: kiner-tang(文辉) <1127031143@qq.com>

* Update components/auto-complete/index.zh-CN.md

Signed-off-by: kiner-tang(文辉) <1127031143@qq.com>

* feat: optimize code

* feat: optimize code

---------

Signed-off-by: kiner-tang(文辉) <1127031143@qq.com>
2023-08-08 10:50:34 +08:00

16 lines
407 B
TypeScript

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('auto-complete', {
testRootProps: false,
});
rootPropsTest(
'auto-complete',
(AutoComplete, props) => <AutoComplete {...props} options={[{ value: 'ddd' }]} />,
{
findRootElements: () => document.querySelectorAll('.ant-select, .ant-select-dropdown'),
expectCount: 2,
},
);