diff --git a/components/date-picker/__tests__/RangePicker.test.js b/components/date-picker/__tests__/RangePicker.test.js index 7411bc2c0e..fb2a233238 100644 --- a/components/date-picker/__tests__/RangePicker.test.js +++ b/components/date-picker/__tests__/RangePicker.test.js @@ -72,7 +72,7 @@ describe('RangePicker', () => { ); wrapper.setProps({ value: [] }); const rangeCalendarWrapper = mount(wrapper.find('Trigger').node.getComponent()); - expect(() => rangeCalendarWrapper.find('.ant-calendar-today').simulate('click').simulate('click')) + expect(() => rangeCalendarWrapper.find('.ant-calendar-today').at(0).simulate('click').simulate('click')) .not.toThrow(); }); });