How to simulate click on React Highcharts Pie Chart arcs on React Testing Library?

100 views Asked by At

I want to test the click event on any arc of the highchart's Pie Chart,

I tried to take the reference from the data Label by something like

fireEvent.click(screen.getByText('93%'));`

and on main js file , I have added console :

series: [{
  point: {
    events: {
      click(event) {
        console.log('2222222 clicked event')

      }
    }
  }
}]

but on console I got nothing

0

There are 0 answers