Kodeco Forums

Video Tutorial: Testing in iOS Part 5: UI Testing & Recording

Learn about element queries in UI testing and how to use recording to automate writing some of your UI testing code.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3493-testing-in-ios/lessons/6

I found I couldn’t get the UI to scroll with:

tablesQuery.staticTexts["Stack 'em High"].swipeUp()

It just tapped instead of scrolled. But it did scroll with:

app.swipeUp()

Also, this part wouldn’t work for me:

let mapIsHidden = map.frame.size.width == 0 || map.frame.size.height == 0
XCTAssertTrue(mapIsHidden)

But replacing it with this worked:

XCTAssertFalse(map.exists)

I’m guessing it’s because I’m using Xcode 8.1