fix test case in react 15

This commit is contained in:
zombiej 2018-07-04 20:23:46 +08:00
parent 1c31efe392
commit 903f3f6770

View File

@ -105,7 +105,7 @@ describe('Table.filter', () => {
const filterMenu = wrapper.find('FilterMenu').instance(); const filterMenu = wrapper.find('FilterMenu').instance();
// check if renderer well // check if renderer well
wrapper.find('Trigger').simulate('click'); wrapper.find('i.ant-dropdown-trigger').simulate('click');
expect(wrapper.find('#customFilter')).toMatchSnapshot(); expect(wrapper.find('#customFilter')).toMatchSnapshot();
// try to use reset btn // try to use reset btn
@ -116,7 +116,7 @@ describe('Table.filter', () => {
expect(filterMenu.state.selectedKeys).toEqual([]); expect(filterMenu.state.selectedKeys).toEqual([]);
// try to use confirm btn // try to use confirm btn
wrapper.find('Trigger').simulate('click'); wrapper.find('i.ant-dropdown-trigger').simulate('click');
wrapper.find('#setSelectedKeys').simulate('click'); wrapper.find('#setSelectedKeys').simulate('click');
expect(filterMenu.state.visible).toBe(true); expect(filterMenu.state.visible).toBe(true);
wrapper.find('#confirm').simulate('click'); wrapper.find('#confirm').simulate('click');