diff --git a/Example/ExampleUITests/MutliValueUITests.swift b/Example/ExampleUITests/MutliValueUITests.swift index 75e5559..2de6e11 100644 --- a/Example/ExampleUITests/MutliValueUITests.swift +++ b/Example/ExampleUITests/MutliValueUITests.swift @@ -13,6 +13,7 @@ import XCTest import Example_macOS #endif +@MainActor final class MultiValueUITests: ExampleUITestCase { override var _sectionNavItem: (() throws -> XCUIElement)? { multiValueNavItem diff --git a/Example/ExampleUITests/SingleOptionalValueTests.swift b/Example/ExampleUITests/SingleOptionalValueTests.swift index 67ec387..31c89d3 100644 --- a/Example/ExampleUITests/SingleOptionalValueTests.swift +++ b/Example/ExampleUITests/SingleOptionalValueTests.swift @@ -13,6 +13,7 @@ import XCTest import Example_macOS #endif +@MainActor final class SingleOptionalValueUITests: ExampleUITestCase { override var _sectionNavItem: (() throws -> XCUIElement)? { singleOptionalValueNavItem diff --git a/Example/ExampleUITests/SingleValueUITests.swift b/Example/ExampleUITests/SingleValueUITests.swift index 66b2faa..b15fcd0 100644 --- a/Example/ExampleUITests/SingleValueUITests.swift +++ b/Example/ExampleUITests/SingleValueUITests.swift @@ -13,6 +13,7 @@ import XCTest import Example_macOS #endif +@MainActor final class SingleValueUITests: ExampleUITestCase { override var _sectionNavItem: (() throws -> XCUIElement)? { singleValueNavItem diff --git a/Example/ExampleUITests/XCUITestCase.swift b/Example/ExampleUITests/XCUITestCase.swift index dc072fc..9fb0518 100644 --- a/Example/ExampleUITests/XCUITestCase.swift +++ b/Example/ExampleUITests/XCUITestCase.swift @@ -8,6 +8,7 @@ import XCTest +@MainActor class XCUITestCase: XCTestCase { private var _app: XCUIApplication? @@ -33,11 +34,10 @@ class XCUITestCase: XCTestCase { NSCompoundPredicate(orPredicateWithSubpredicates: labels.map(elementPredicate(labeled:))) } - override func setUpWithError() throws { + override func setUp() async throws { _app = XCUIApplication() continueAfterFailure = false - - try app().launch() + try? app().launch() } }