99import XCTest
1010
1111class ios_baseUITests : XCTestCase {
12-
12+
1313 var app : XCUIApplication !
1414
1515 let networkMocker = NetworkMocker ( )
@@ -18,7 +18,8 @@ class ios_baseUITests: XCTestCase {
1818 try super. setUpWithError ( )
1919 app = XCUIApplication ( )
2020 app. launchArguments = [ " Automation Test " ]
21-
21+ app. launch ( )
22+
2223 try networkMocker. setUp ( )
2324 networkMocker. stub ( with: . logOut, method: . DELETE)
2425 app. logOutIfNeeded ( in: self )
@@ -30,8 +31,6 @@ class ios_baseUITests: XCTestCase {
3031 }
3132
3233 func testCreateAccountValidations( ) {
33- app. launch ( )
34-
3534 app. buttons [ " GoToSignUpButton " ] . forceTap ( )
3635
3736 let toolbarDoneButton = app. buttons [ " Toolbar Done Button " ]
@@ -66,8 +65,6 @@ class ios_baseUITests: XCTestCase {
6665 }
6766
6867 func testAccountCreation( ) {
69- app. launch ( )
70-
7168 networkMocker. stub ( with: . signUp( success: true ) , method: . POST)
7269
7370 app. attemptSignUp (
@@ -90,8 +87,6 @@ class ios_baseUITests: XCTestCase {
9087 }
9188
9289 func testSignInSuccess( ) {
93- app. launch ( )
94-
9590 networkMocker. stub ( with: . signIn( success: true ) , method: . POST)
9691
9792 app. attemptSignIn ( in: self ,
@@ -103,8 +98,6 @@ class ios_baseUITests: XCTestCase {
10398 }
10499
105100 func testSignInFailure( ) {
106- app. launch ( )
107-
108101 networkMocker. stub ( with: . signIn( success: false ) , method: . POST)
109102
110103 app. attemptSignIn ( in: self ,
@@ -122,8 +115,6 @@ class ios_baseUITests: XCTestCase {
122115 }
123116
124117 func testSignInValidations( ) {
125- app. launch ( )
126-
127118 app. buttons [ " GoToSignInButton " ] . forceTap ( )
128119
129120 let toolbarDoneButton = app. buttons [ " Toolbar Done Button " ]
0 commit comments