Skip to content

Commit d9d2dd8

Browse files
committed
Fix UI tests logout setup
1 parent 702d694 commit d9d2dd8

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

ios-baseUITests/ios_baseUITests.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//
88

99
import XCTest
10-
@testable import ios_base_Debug
1110

1211
class ios_baseUITests: XCTestCase {
1312

@@ -21,6 +20,7 @@ class ios_baseUITests: XCTestCase {
2120
app.launchArguments = ["Automation Test"]
2221

2322
try? networkMocker.setUp()
23+
networkMocker.stubLogOut()
2424
app.logOutIfNeeded(in: self)
2525
}
2626

@@ -87,13 +87,6 @@ class ios_baseUITests: XCTestCase {
8787

8888
alert.buttons.allElementsBoundByIndex.first?.tap()
8989
}
90-
91-
let logOutButton = app.buttons["LogoutButton"]
92-
waitFor(element: logOutButton, timeOut: 5)
93-
94-
networkMocker.stubLogOut()
95-
96-
logOutButton.tap()
9790
}
9891

9992
func testSignInSuccess() {
@@ -107,12 +100,6 @@ class ios_baseUITests: XCTestCase {
107100

108101
let logOutButton = app.buttons["LogoutButton"]
109102
waitFor(element: logOutButton, timeOut: 10)
110-
111-
networkMocker.stubLogOut()
112-
logOutButton.forceTap()
113-
114-
let goToSignInButton = app.buttons["GoToSignInButton"]
115-
waitFor(element: goToSignInButton, timeOut: 10)
116103
}
117104

118105
func testSignInFailure() {

0 commit comments

Comments
 (0)