Pulling to refresh UI on an empty table during UI Test causes app to fail to quiesce within 30 seconds

Originator:David.Aghassi
Number:rdar://24480046 Date Originated:2/3/2016
Status:Closed Resolved:3/9/2016
Product:Developer Tools Product Version:7.2
Classification:Other Bug Reproducible:Always
 
Summary:
When simulating a pull to refresh on an empty table view, the test will fail stating "App failed to quiesce within 30 seconds". Since there is no native way to tell the app to refresh, we simulate one using coordinatesWithNormalOffset()

Steps to Reproduce:
1. Create a tableView that is empty when it loads
2. Create a UI Test with the following code:
   let app = XCUIApplication()
    
    let table = app.navigationBars["*tableViewName*"]
    XCTAssertTrue(table.tableRows.count == 0)
    
    let start = table.coordinateWithNormalizedOffset(CGVectorMake(10, 10))
    let end = table.coordinateWithNormalizedOffset(CGVectorMake(10, 16))
    
    start.pressForDuration(0, thenDragToCoordinate: end)
    XCTAssertTrue(table.tableRows.count == 0)
3. Run the test and see that it fails at start.pressForDuration(0, thenDragToCoordinate: end)

Expected Results:
The test should pass as the table is still empty and the list should refresh.

Actual Results:
The test fails as it states the app "failed to quiesce in 30 seconds"

Version:
7.2 (7C68)

Comments

Hello David,

Engineering has determined that your bug report (24480046) is a duplicate of another issue (22158864) and will be closed.

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

An example of the duplicate section from the bug reporter user interface with your bug and the duplicate bug info is included below:

24480046 Pulling to refresh UI on an empty table during UI Test causes app to fail to quiesce within 30 seconds

State: Closed Product: Rank: No Value

By David.Aghassi at March 9, 2016, 1:50 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!