@@ -3,6 +3,7 @@ import SwiftUI
3
3
import Testing
4
4
import ViewInspector
5
5
6
+ @MainActor
6
7
@Suite ( . timeLimit( . minutes( 1 ) ) )
7
8
struct LoginTests {
8
9
let session : MockSession
@@ -16,7 +17,6 @@ struct LoginTests {
16
17
}
17
18
18
19
@Test
19
- @MainActor
20
20
func testInitialView( ) async throws {
21
21
try await ViewHosting . host ( view) {
22
22
try await sut. inspection. inspect { view in
@@ -28,7 +28,6 @@ struct LoginTests {
28
28
}
29
29
30
30
@Test
31
- @MainActor
32
31
func testInvalidServerURL( ) async throws {
33
32
try await ViewHosting . host ( view) {
34
33
try await sut. inspection. inspect { view in
@@ -40,7 +39,6 @@ struct LoginTests {
40
39
}
41
40
42
41
@Test
43
- @MainActor
44
42
func testValidServerURL( ) async throws {
45
43
try await ViewHosting . host ( view) {
46
44
try await sut. inspection. inspect { view in
@@ -55,7 +53,6 @@ struct LoginTests {
55
53
}
56
54
57
55
@Test
58
- @MainActor
59
56
func testBackButton( ) async throws {
60
57
try await ViewHosting . host ( view) {
61
58
try await sut. inspection. inspect { view in
@@ -70,7 +67,6 @@ struct LoginTests {
70
67
}
71
68
72
69
@Test
73
- @MainActor
74
70
func testFailedAuthentication( ) async throws {
75
71
let login = LoginForm < MockErrorClient , MockSession > ( )
76
72
@@ -87,7 +83,6 @@ struct LoginTests {
87
83
}
88
84
89
85
@Test
90
- @MainActor
91
86
func testSuccessfulLogin( ) async throws {
92
87
try await ViewHosting . host ( view) {
93
88
try await sut. inspection. inspect { view in
0 commit comments