Skip to content

Commit d5fd7e9

Browse files
committed
Try UI tests app launch
1 parent ed37623 commit d5fd7e9

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

ios-baseUITests/ios_baseUITests.swift

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import XCTest
1010

1111
class 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"]

ios-baseUnitTests/Cases/Services/UserServiceUnitTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class UserServiceUnitTests: XCTestCase {
5050
testUserStorageAfterProfileFetch(success: false) { result in
5151
switch result {
5252
case .success:
53-
XCTFail("Test expected to fail")
53+
XCTFail("GET Profile Request expected to fail")
5454
case .failure(let error):
5555
expectation.fulfill()
5656
XCTAssertNil(UserDataManager.currentUser)

0 commit comments

Comments
 (0)