Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tests/SwiftAppiumTests/MockAppiumClient.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import Foundation
#if os(macOS)
import OSLog
#else
import Logging
#endif
import AsyncHTTPClient
@testable import SwiftAppium

Expand Down
5 changes: 3 additions & 2 deletions Tests/SwiftAppiumTests/ModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Testing

@Suite
struct ModelTests {
/*
let session: Session = Session(client: MockAppium(), platform: "iOS", automationName: "XCUITest")

@Test
Expand All @@ -13,7 +14,7 @@ struct ModelTests {
#expect(element?.strategy == .id)
#expect(element?.selector.wrappedValue == selector)
}
/*

@Test
func testWaitForElement() async throws {
let selector = "test-button"
Expand Down Expand Up @@ -415,10 +416,10 @@ struct ModelTests {
throw TestError.unexpectedError
}
}
*/
}

enum TestError: Error {
case expectedError
case unexpectedError
}
*/