mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
fix test case in react 15
This commit is contained in:
parent
1c31efe392
commit
903f3f6770
@ -105,7 +105,7 @@ describe('Table.filter', () => {
|
||||
const filterMenu = wrapper.find('FilterMenu').instance();
|
||||
|
||||
// check if renderer well
|
||||
wrapper.find('Trigger').simulate('click');
|
||||
wrapper.find('i.ant-dropdown-trigger').simulate('click');
|
||||
expect(wrapper.find('#customFilter')).toMatchSnapshot();
|
||||
|
||||
// try to use reset btn
|
||||
@ -116,7 +116,7 @@ describe('Table.filter', () => {
|
||||
expect(filterMenu.state.selectedKeys).toEqual([]);
|
||||
|
||||
// try to use confirm btn
|
||||
wrapper.find('Trigger').simulate('click');
|
||||
wrapper.find('i.ant-dropdown-trigger').simulate('click');
|
||||
wrapper.find('#setSelectedKeys').simulate('click');
|
||||
expect(filterMenu.state.visible).toBe(true);
|
||||
wrapper.find('#confirm').simulate('click');
|
||||
|
Loading…
Reference in New Issue
Block a user