Ben*_*nnX 9 ios xctest swift swift3
我们得到了一个测试,我们需要在其中swipeUp
看到一个单元格tableView
.在swipeUp
我们无法打印出事件之后app.tables
.如果我们不刷卡一切按预期工作.
例:
func testSomethingInApp() {
let app = XCUIApplication()
app.launch()
app.swipeUp() //after this we cant get app.tables anymore. Befor everything is fine
XCTAssertEqual(app.tables.cells.elementBoundByIndex(5), "something") //something like this
}
Run Code Online (Sandbox Code Playgroud)