Update RiotSwiftUI/Modules/UserSessions/UserOtherSessions/Test/UI/UserOtherSessionsUITests.swift

Co-authored-by: aringenbach <80891108+aringenbach@users.noreply.github.com>
This commit is contained in:
Aleksandrs Proskurins
2022-11-02 11:43:03 +02:00
committed by GitHub
parent cf6a17d938
commit 0943635739
@@ -95,9 +95,9 @@ class UserOtherSessionsUITests: MockScreenTestCase {
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.all.title)
app.buttons["More"].tap()
app.buttons["Select sessions"].tap()
let singOutButton = app.buttons["Sign out"]
XCTAssertTrue(singOutButton.exists)
XCTAssertFalse(singOutButton.isEnabled)
let signOutButton = app.buttons["Sign out"]
XCTAssertTrue(signOutButton.exists)
XCTAssertFalse(signOutButton.isEnabled)
let sessionListItem = app.buttons["UserSessionListItem_0"]
sessionListItem.tap()
XCTAssertTrue(singOutButton.isEnabled)