jest + enzyme, using mount(), document.getElementById() returns null on component which appear after _method call jest + enzyme, using mount(), document.getElementById() returns null on component which appear after _method call reactjs reactjs