mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +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();
|
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');
|
||||||
|
Loading…
Reference in New Issue
Block a user