Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DataViewControllerUITests: XCTestCase {
- var app: XCUIApplication!
- override func setUp() {
- super.setUp()
- continueAfterFailure = false
- app = XCUIApplication()
- }
- func testSwiping() {
- app.launch()
- let isDisplayingOnboarding = app.otherElements["Onboarding View"].exists
- XCTAssertTrue(isDisplayingOnboarding)
- XCTAssertEqual(app.staticTexts.element(boundBy: 0).value as! String, "January")
- app.swipeLeft()
- XCTAssertEqual(app.staticTexts.element(boundBy: 0).value as! String, "February")
- app.swipeLeft()
- XCTAssertEqual(app.staticTexts.element(boundBy: 0).value as! String, "March")
- app.terminate()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement