I am trying to write a test case using the new UI Testing available in Xcode 7 beta 2. The App has a login screen where it makes a call to the server to login. There is a delay associated with this as it is an asynchronous operation.
Is there a way to cause a delay or wait mechanism in the XCTestCase before proceeding to further steps?
There is no proper documentation available and I went through the Header files of the classes. Was not able to find anything related to this.
Any ideas/suggestions?
Additionally, you can just sleep:
sleep(10)
Since the UITests run in another process, this works. I don’t know how advisable it is, but it works.