MDL-37656 behat: Waiting for the DOM

Always wait for the DOM to be ready after running
a step to ensure the next one has all the DOM available