BUG: Fix testing on mac and windows by preventing pop ups windows to show