Joe Masilotti

3pods

JAMTestHelper

UI Testing in Xcode 7 doesn't offer any way to wait for elements to exist.

This adds a few helper methods to XCTestCase, such as:

  • waitForElementToExist: - waits until element.exists returns YES
  • waitForElementToNotExist: - waits until element.exists returns NO
  • waitForActivityIndicatorToFinish - waits until the (assumed) only activity indicator stops animating

License: MIT

  • Swift