reactjs - simulate for onClick not working in enzyme -
this cancel button
<div classname="cancelfilebtn" onclick={this.props.cancelfilesending}>
i need simulate click,i tried following test
wrapper.find('.cancelfilebtn').simulate('click');
but click function still undefined...did miss else? , helpful if can mention changes if exist in simulating
<sendmessagebutton onclick={this.props.handleclicksendmessage} loadingfile={this.props.loadingfile}/>
Comments
Post a Comment