Skip to content

Commit

Permalink
#9 fix swipe gestures on iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailgulek committed Jul 4, 2022
1 parent 8a149c1 commit b377d89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UITests/Sources/SplashScreenUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ class SplashScreenUITests: XCTestCase {
XCTAssertFalse(hiddenPageTitleText.isHittable, "The hidden page of the carousel should be offscreen.")

// When swiping to the next screen.
page1TitleText.swipeLeft()
page1TitleText.swipeLeft(velocity: .fast)

// Then the second screen should be shown.
XCTAssertFalse(page1TitleText.isHittable, "The title from the first page of the carousel should be offscreen.")
XCTAssertTrue(page2TitleText.isHittable, "The title from the second page of the carousel should be onscreen.")

// When swiping back to the previous screen.
page2TitleText.swipeRight()
page2TitleText.swipeRight(velocity: .fast)

// Then the first screen should be shown again.
XCTAssertTrue(page1TitleText.isHittable, "The title from the first page of the carousel should be onscreen.")
XCTAssertFalse(page2TitleText.isHittable, "The title from the second page of the carousel should be offscreen.")

// When swiping back to the previous screen.
page1TitleText.swipeRight()
page1TitleText.swipeRight(velocity: .fast)

// Then the screen shouldn't change and the hidden screen should be ignored.
XCTAssertTrue(page1TitleText.isHittable, "The title from the first page of the carousel should be still be onscreen.")
Expand Down

0 comments on commit b377d89

Please sign in to comment.