Skip to content

Commit 0598e46

Browse files
committed
WIP
1 parent a4b6dd8 commit 0598e46

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Tests/Tests/ViewTypes/WebViewTests.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#if canImport(WebKit)
1+
#if compiler(>=6.2) && canImport(WebKit)
22
import SwiftUI
33
import SwiftUIIntrospect
44
import WebKit
55
import XCTest
6+
import Testing
67

7-
@available(iOS 26, tvOS 26, macOS 26, *)
88
@MainActor
9-
final class WebViewTests: XCTestCase {
10-
typealias PlatformMap = WKWebView
11-
12-
func testWebView() throws {
13-
XCTAssertViewIntrospection(of: PlatformMap.self) { spies in
9+
@Suite
10+
struct WebViewTests {
11+
@available(iOS 26, tvOS 26, macOS 26, visionOS 26, *)
12+
@Test func webView() async throws {
13+
XCTAssertViewIntrospection(of: WKWebView.self) { spies in
1414
let spy0 = spies[0]
1515
let spy1 = spies[1]
1616
let spy2 = spies[2]
@@ -38,9 +38,9 @@ final class WebViewTests: XCTestCase {
3838
)
3939
}
4040
} extraAssertions: {
41-
XCTAssertNotIdentical($0[safe: 0], $0[safe: 1])
42-
XCTAssertNotIdentical($0[safe: 0], $0[safe: 2])
43-
XCTAssertNotIdentical($0[safe: 1], $0[safe: 2])
41+
#expect($0[safe: 0] !== $0[safe: 1])
42+
#expect($0[safe: 0] !== $0[safe: 2])
43+
#expect($0[safe: 1] !== $0[safe: 2])
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)