mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Fix test case
This commit is contained in:
parent
8fb285fce9
commit
67df1cd979
@ -195,13 +195,19 @@ describe('Table.filter', () => {
|
||||
filters,
|
||||
}],
|
||||
}));
|
||||
jest.useFakeTimers();
|
||||
const dropdownWrapper = mount(wrapper.find('Trigger').instance().getComponent());
|
||||
dropdownWrapper.find('.ant-dropdown-menu-submenu-title').at(0).simulate('mouseEnter');
|
||||
jest.runAllTimers();
|
||||
dropdownWrapper.update();
|
||||
dropdownWrapper.find('.ant-dropdown-menu-submenu-title').at(1).simulate('mouseEnter');
|
||||
jest.runAllTimers();
|
||||
dropdownWrapper.update();
|
||||
dropdownWrapper.find('MenuItem').last().simulate('click');
|
||||
dropdownWrapper.find('.confirm').simulate('click');
|
||||
wrapper.update();
|
||||
expect(renderedNames(wrapper)).toEqual(['Jack']);
|
||||
jest.useRealTimers();
|
||||
});
|
||||
|
||||
it('works with JSX in controlled mode', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user