score:6

Accepted answer

you could try the findwhere method:

const wrapper = enzyme.mount(<component {...somedefaultprops} />);
wrapper.findwhere(x => x.text() === '1')
  .first()
  .simulate("click");

Related Query

More Query from same tag