This is a cancel button.
<div className="cancelFileBtn" onClick={this.props.cancelFileSending}>
I need to simulate his click, I tried the following test
wrapper.find('.cancelFileBtn').simulate('click');
But the click function is still undefined ... Am I missing anything else? and it will be very useful if anyone can point out any changes if they exist in the simulation
<SendMessageButton onClick={this.props.handleClickSendMessage} loadingFile={this.props.loadingFile}/>
source
share