enzyme

I have a Parent and a child component.
Parent Component:
const ParentComponent = () => {

const click_button = (role) => {
document.getElementById(role).innerHTML = role;
}

return (
<div>