Skip to content

Commit 6afda7e

Browse files
committed
WIP
1 parent 76665d7 commit 6afda7e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/Tests/ViewTypes/SearchFieldTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct SearchFieldTests {
1111
#endif
1212

1313
@available(iOS 15, tvOS 15, *)
14-
@Test(.disabledOn_iOS26_exceptFor_iPad)
14+
@Test(.disabledOn_iOS26_exceptFor_iPad())
1515
func introspectInNavigationStack() async throws {
1616
try await introspection(of: PlatformSearchField.self) { spy in
1717
NavigationView {
@@ -42,7 +42,7 @@ struct SearchFieldTests {
4242
}
4343

4444
@available(iOS 15, tvOS 15, *)
45-
@Test(.disabledOn_iOS26_exceptFor_iPad)
45+
@Test(.disabledOn_iOS26_exceptFor_iPad())
4646
func introspectInNavigationStackAsAncestor() async throws {
4747
try await introspection(of: PlatformSearchField.self) { spy in
4848
NavigationView {
@@ -73,7 +73,7 @@ struct SearchFieldTests {
7373
}
7474

7575
@available(iOS 15, tvOS 15, *)
76-
@Test(.disabledOn_iOS26_exceptFor_iPad)
76+
@Test(.disabledOn_iOS26_exceptFor_iPad())
7777
func introspectInNavigationSplitView() async throws {
7878
try await introspection(of: PlatformSearchField.self) { spy in
7979
NavigationView {
@@ -116,7 +116,7 @@ struct SearchFieldTests {
116116
}
117117

118118
@available(iOS 15, tvOS 15, *)
119-
@Test(.disabledOn_iOS26_exceptFor_iPad)
119+
@Test(.disabledOn_iOS26_exceptFor_iPad())
120120
func introspectInNavigationSplitViewAsAncestor() async throws {
121121
try await introspection(of: PlatformSearchField.self) { spy in
122122
NavigationView {
@@ -163,12 +163,12 @@ struct SearchFieldTests {
163163
@MainActor
164164
extension Trait where Self == ConditionTrait {
165165
// TODO: rename to `disabled on iOS 26+ except for iPad` when Swift 6.2 becomes available (on Xcode 26)
166-
static var disabledOn_iOS26_exceptFor_iPad: Self {
166+
static func disabledOn_iOS26_exceptFor_iPad(sourceLocation: SourceLocation = #_sourceLocation) -> Self {
167167
let disabled = if #available(iOS 26, *) {
168168
UIDevice.current.userInterfaceIdiom != .pad
169169
} else {
170170
false
171171
}
172-
return .disabled(if: disabled)
172+
return .disabled(if: disabled, "Disabled on iOS 26+ except for iPad", sourceLocation: sourceLocation)
173173
}
174174
}

0 commit comments

Comments
 (0)