Created
May 10, 2018 07:01
-
-
Save tranhieutt/dd9019349f89a48b1a9783586cd073cd to your computer and use it in GitHub Desktop.
testMoveToOtherScreen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func testMoveToOtherScreen() { | |
_ = tapOnButtonInCell(atPosition: 0) | |
XCTAssert(app.navigationBars["Other Screen:"].exists) | |
} | |
func tapOnButtonInCell(atPosition: Int) -> XCUIElement { | |
let cellQuerry = app.tables.cells.element(boundBy: atPosition) | |
cellQuerry.buttons["buttonOther"].tap() | |
return cellQuerry | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment