Testing in iOS - Part 24: Refactoring your UI Test | Ray Wenderlich

This video covers how to take recorded UI actions and convert them into bonafide UI tests.


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

About the line XCTAssertFalse(navBar.exists, “The old navigation bar no longer exists”)

This asserts that navBar.exists is false (navBar doesn’t exist), so it generates a failure when navBar.exists is true (navBar still exists). If it still exists, shouldn’t the error message say the opposite to what it actually says?

Yeah, that looks like a typo. Good catch.