Skip to content

Commit

Permalink
Cleanup UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alfogrillo committed Oct 28, 2022
1 parent 9b8f158 commit 3b8e8d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class UserOtherSessionsUITests: MockScreenTestCase {
XCTAssertTrue(app.staticTexts[VectorL10n.userOtherSessionFilterMenuInactive].exists)
let buttonLearnMore = app.buttons["\(VectorL10n.userSessionsOverviewSecurityRecommendationsInactiveInfo) \(VectorL10n.userSessionLearnMore)"]
XCTAssertTrue(buttonLearnMore.exists)
buttonLearnMore.tap()
XCTAssertTrue(app.staticTexts[VectorL10n.userSessionInactiveSessionTitle].exists)
}

func test_whenOtherSessionsWithInactiveSessionFilterPresented_correctItemsDisplayed() {
Expand All @@ -39,8 +37,6 @@ class UserOtherSessionsUITests: MockScreenTestCase {
XCTAssertTrue(app.staticTexts[VectorL10n.userOtherSessionFilterMenuUnverified].exists)
let buttonLearnMore = app.buttons["\(VectorL10n.userOtherSessionUnverifiedSessionsHeaderSubtitle) \(VectorL10n.userSessionLearnMore)"]
XCTAssertTrue(buttonLearnMore.exists)
buttonLearnMore.tap()
XCTAssertTrue(app.staticTexts[VectorL10n.userSessionUnverifiedSessionTitle].exists)
}

func test_whenOtherSessionsWithUnverifiedSessionFilterPresented_correctItemsDisplayed() {
Expand All @@ -61,8 +57,6 @@ class UserOtherSessionsUITests: MockScreenTestCase {
XCTAssertTrue(app.staticTexts[VectorL10n.userOtherSessionFilterMenuVerified].exists)
let buttonLearnMore = app.buttons["\(VectorL10n.userOtherSessionVerifiedSessionsHeaderSubtitle) \(VectorL10n.userSessionLearnMore)"]
XCTAssertTrue(buttonLearnMore.exists)
buttonLearnMore.tap()
XCTAssertTrue(app.staticTexts[VectorL10n.userSessionVerifiedSessionTitle].exists)
}

func test_whenOtherSessionsMoreMenuButtonSelected_selectSessionsButtonExists() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ class UserSessionOverviewUITests: MockScreenTestCase {
let buttonId = "\(VectorL10n.userOtherSessionVerifiedAdditionalInfo) \(VectorL10n.userSessionLearnMore)"
let button = app.buttons[buttonId]
XCTAssertTrue(button.exists)
button.tap()
XCTAssertTrue(app.staticTexts[VectorL10n.userSessionVerifiedSessionTitle].exists)
}

func test_whenOtherUnverifiedSessionSelected_learnMoreButtonExists() {
app.goToScreenWithIdentifier(MockUserSessionOverviewScreenState.otherSession(sessionState: .unverified).title)
let buttonId = "\(VectorL10n.userOtherSessionUnverifiedAdditionalInfo) \(VectorL10n.userSessionLearnMore)"
let button = app.buttons[buttonId]
XCTAssertTrue(button.exists)
button.tap()
XCTAssertTrue(app.staticTexts[VectorL10n.userSessionUnverifiedSessionTitle].exists)
}
}

0 comments on commit 3b8e8d1

Please sign in to comment.