Dash Testing for the clickData event of a Graph

Dear developers,

Though I am quite new to the Dash and Plotly APIs, I’ve been enjoying them a lot. I’ve written a few unit tests to protect the core functionalities. For example, element.send_keys() triggers the file upload event, and element.click() helps to open/select a dropdown.

I have an interactive plot, where users click scatter3d points and some information will be displayed (e.g. the distance between the selected points). How do we write unit tests for the clickData event of a Graph?

Thanks a lot in advance!