9
9
import XCTest
10
10
11
11
class ios_baseUITests : XCTestCase {
12
-
12
+
13
13
var app : XCUIApplication !
14
14
15
15
let networkMocker = NetworkMocker ( )
@@ -18,7 +18,8 @@ class ios_baseUITests: XCTestCase {
18
18
try super. setUpWithError ( )
19
19
app = XCUIApplication ( )
20
20
app. launchArguments = [ " Automation Test " ]
21
-
21
+ app. launch ( )
22
+
22
23
try networkMocker. setUp ( )
23
24
networkMocker. stub ( with: . logOut, method: . DELETE)
24
25
app. logOutIfNeeded ( in: self )
@@ -30,8 +31,6 @@ class ios_baseUITests: XCTestCase {
30
31
}
31
32
32
33
func testCreateAccountValidations( ) {
33
- app. launch ( )
34
-
35
34
app. buttons [ " GoToSignUpButton " ] . forceTap ( )
36
35
37
36
let toolbarDoneButton = app. buttons [ " Toolbar Done Button " ]
@@ -66,8 +65,6 @@ class ios_baseUITests: XCTestCase {
66
65
}
67
66
68
67
func testAccountCreation( ) {
69
- app. launch ( )
70
-
71
68
networkMocker. stub ( with: . signUp( success: true ) , method: . POST)
72
69
73
70
app. attemptSignUp (
@@ -90,8 +87,6 @@ class ios_baseUITests: XCTestCase {
90
87
}
91
88
92
89
func testSignInSuccess( ) {
93
- app. launch ( )
94
-
95
90
networkMocker. stub ( with: . signIn( success: true ) , method: . POST)
96
91
97
92
app. attemptSignIn ( in: self ,
@@ -103,8 +98,6 @@ class ios_baseUITests: XCTestCase {
103
98
}
104
99
105
100
func testSignInFailure( ) {
106
- app. launch ( )
107
-
108
101
networkMocker. stub ( with: . signIn( success: false ) , method: . POST)
109
102
110
103
app. attemptSignIn ( in: self ,
@@ -122,8 +115,6 @@ class ios_baseUITests: XCTestCase {
122
115
}
123
116
124
117
func testSignInValidations( ) {
125
- app. launch ( )
126
-
127
118
app. buttons [ " GoToSignInButton " ] . forceTap ( )
128
119
129
120
let toolbarDoneButton = app. buttons [ " Toolbar Done Button " ]
0 commit comments