@@ -3,6 +3,7 @@ import SwiftUI
33import Testing
44import ViewInspector
55
6+ @MainActor
67@Suite ( . timeLimit( . minutes( 1 ) ) )
78struct LoginTests {
89 let session : MockSession
@@ -16,7 +17,6 @@ struct LoginTests {
1617 }
1718
1819 @Test
19- @MainActor
2020 func testInitialView( ) async throws {
2121 try await ViewHosting . host ( view) {
2222 try await sut. inspection. inspect { view in
@@ -28,7 +28,6 @@ struct LoginTests {
2828 }
2929
3030 @Test
31- @MainActor
3231 func testInvalidServerURL( ) async throws {
3332 try await ViewHosting . host ( view) {
3433 try await sut. inspection. inspect { view in
@@ -40,7 +39,6 @@ struct LoginTests {
4039 }
4140
4241 @Test
43- @MainActor
4442 func testValidServerURL( ) async throws {
4543 try await ViewHosting . host ( view) {
4644 try await sut. inspection. inspect { view in
@@ -55,7 +53,6 @@ struct LoginTests {
5553 }
5654
5755 @Test
58- @MainActor
5956 func testBackButton( ) async throws {
6057 try await ViewHosting . host ( view) {
6158 try await sut. inspection. inspect { view in
@@ -70,7 +67,6 @@ struct LoginTests {
7067 }
7168
7269 @Test
73- @MainActor
7470 func testFailedAuthentication( ) async throws {
7571 let login = LoginForm < MockErrorClient , MockSession > ( )
7672
@@ -87,7 +83,6 @@ struct LoginTests {
8783 }
8884
8985 @Test
90- @MainActor
9186 func testSuccessfulLogin( ) async throws {
9287 try await ViewHosting . host ( view) {
9388 try await sut. inspection. inspect { view in
0 commit comments