'View all' button in other sessions list

This commit is contained in:
Aleksandrs Proskurins
2022-10-07 09:45:45 +03:00
parent 31a2ad9229
commit d189bad4a9
11 changed files with 251 additions and 21 deletions
@@ -52,4 +52,16 @@ class UserSessionsOverviewUITests: MockScreenTestCase {
XCTAssertFalse(app.staticTexts["userSessionsOverviewSecurityRecommendationsSection"].exists)
XCTAssertFalse(app.staticTexts["userSessionsOverviewOtherSection"].exists)
}
func testWhenMoreThan5OtherSessionsThenViewAllButtonVisible() {
app.goToScreenWithIdentifier(MockUserSessionsOverviewScreenState.currentSessionUnverified.title)
app.swipeUp()
XCTAssertTrue(app.buttons["ViewAllButton"].exists)
}
func testWhenLessThan5OtherSessionsThenViewAllButtonHidden() {
app.goToScreenWithIdentifier(MockUserSessionsOverviewScreenState.onlyUnverifiedSessions.title)
app.swipeUp()
XCTAssertFalse(app.buttons["ViewAllButton"].exists)
}
}