Add more waitForSelector in the tests so slower machines don't run into issues.