Skip to content

Commit

Permalink
Add missing MainActor isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Jarvis committed Nov 12, 2024
1 parent e4743f1 commit d415aa7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Example/ExampleUITests/MutliValueUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import XCTest

@MainActor
final class MultiValueUITests: ExampleUITestCase {
@MainActor
override var _sectionNavItem: (() throws -> XCUIElement)? {
multiValueNavItem
}

@MainActor
override var _picker: (() throws -> XCUIElement)? {
multiValuePicker
}
Expand Down
2 changes: 2 additions & 0 deletions Example/ExampleUITests/SingleOptionalValueTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import XCTest

@MainActor
final class SingleOptionalValueUITests: ExampleUITestCase {
@MainActor
override var _sectionNavItem: (() throws -> XCUIElement)? {
singleOptionalValueNavItem
}

@MainActor
override var _picker: (() throws -> XCUIElement)? {
singleOptionalValuePicker
}
Expand Down
2 changes: 2 additions & 0 deletions Example/ExampleUITests/SingleValueUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import XCTest

@MainActor
final class SingleValueUITests: ExampleUITestCase {
@MainActor
override var _sectionNavItem: (() throws -> XCUIElement)? {
singleValueNavItem
}

@MainActor
override var _picker: (() throws -> XCUIElement)? {
singleValuePicker
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import XCTest

@MainActor
extension XCUIElementQuery {
@MainActor
public func exactlyOneMatch() throws -> XCUIElement {
XCTAssertEqual(count, 1, "Requiring only one element match the query resulting in `self`")
return firstMatch
Expand Down

0 comments on commit d415aa7

Please sign in to comment.