chore: fix event.Observer tests which were failing on firefox
if the browser window is not focused firefox seems to be unable to give focus to a dom element