title: Wait for all HTTP requests to finish in XCode UI tests?
body: <p>Is there a way to wait for all network requests to finish when testing UI in XCode?</p>
  
  <p>I have an app that sends HTTP requests to get some data from a server, and, in UI tests, I'd like to wait for this data to be retrieved before continuing. Currently I'm using <code>sleep(1)</code> but this approach doesn't seem reliable.</p>