Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. class DataViewControllerUITests: XCTestCase {
  2. var app: XCUIApplication!
  3.  
  4. override func setUp() {
  5. super.setUp()
  6. continueAfterFailure = false
  7. app = XCUIApplication()
  8. }
  9.  
  10. func testSwiping() {
  11. app.launch()
  12. let isDisplayingOnboarding = app.otherElements["Onboarding View"].exists
  13.  
  14. XCTAssertTrue(isDisplayingOnboarding)
  15. XCTAssertEqual(app.staticTexts.element(boundBy: 0).value as! String, "January")
  16. app.swipeLeft()
  17. XCTAssertEqual(app.staticTexts.element(boundBy: 0).value as! String, "February")
  18. app.swipeLeft()
  19. XCTAssertEqual(app.staticTexts.element(boundBy: 0).value as! String, "March")
  20. app.terminate()
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement