This should be added in `waitForApp`