XCTest - Waiting for predicate fails
<p>I am trying to wait for a string to appear in the navbar during a UI test. When trying to set the expectation I get a "Thread 1: breakpoint 1.1". What am I doing wrong here?</p>

<pre><code>expectation(for: NSPredicate(format: "label CONTAINS 'Rent'"), 
    evaluatedWith: XCUIApplication().navigationBars.staticTexts, 
    handler: nil)
waitForExpectations(timeout: 10, handler: nil)
</code></pre>