Skip to content

Commit

Permalink
fix tvOS compile error (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
skychiarottoa authored Mar 21, 2022
1 parent a1b0b8e commit 57cbad7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XCode/Sources/UITests/XCTAssertion+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public extension XCUIElement {
}
}

#if !os(tvOS)
// MARK: Gestures
public func tap(_ element: XCUIElement, _ message: String = "", file: StaticString = #filePath, line: UInt = #line) {
XCTAssertTrue(element.waitForExistence(timeout: expectationTimeout), "\(message) - \(element) does not exist.", file: file, line: line)
Expand All @@ -101,6 +102,7 @@ public func doubleTap(_ element: XCUIElement, _ message: String = "", file: Stat
XCTAssertTrue(element.waitForExistence(timeout: expectationTimeout), "\(message) - \(element) does not exist.", file: file, line: line)
element.doubleTap()
}
#endif

#if canImport(UIKit)
#if !os(tvOS)
Expand Down

0 comments on commit 57cbad7

Please sign in to comment.