我正在尝试使用AgGrid触发行单击事件。我这样写:
it('shows the modal when click the row -2', async () => {
render(<GroupsContainer data={data} filteredList={[rowData]} />);
const row = screen.getByRole('gridcell', { name: /group1/i });
userEvent.click(row);// Seems like this doesn't work
const modal = await screen.findByRole('dialog');
});