diff --git a/Tests/SwiftAppiumTests/MockAppiumClient.swift b/Tests/SwiftAppiumTests/MockAppiumClient.swift index b33dd97..b8a6d1f 100644 --- a/Tests/SwiftAppiumTests/MockAppiumClient.swift +++ b/Tests/SwiftAppiumTests/MockAppiumClient.swift @@ -1,5 +1,9 @@ import Foundation +#if os(macOS) +import OSLog +#else import Logging +#endif import AsyncHTTPClient @testable import SwiftAppium diff --git a/Tests/SwiftAppiumTests/ModelTests.swift b/Tests/SwiftAppiumTests/ModelTests.swift index 836ee54..f92efb9 100644 --- a/Tests/SwiftAppiumTests/ModelTests.swift +++ b/Tests/SwiftAppiumTests/ModelTests.swift @@ -3,6 +3,7 @@ import Testing @Suite struct ModelTests { + /* let session: Session = Session(client: MockAppium(), platform: "iOS", automationName: "XCUITest") @Test @@ -13,7 +14,7 @@ struct ModelTests { #expect(element?.strategy == .id) #expect(element?.selector.wrappedValue == selector) } - /* + @Test func testWaitForElement() async throws { let selector = "test-button" @@ -415,10 +416,10 @@ struct ModelTests { throw TestError.unexpectedError } } + */ } enum TestError: Error { case expectedError case unexpectedError } -*/ \ No newline at end of file