Test empty state for UserOtherSessions

This commit is contained in:
Alfonso Grillo
2022-11-10 11:16:02 +01:00
parent 97292d43bd
commit 1ccd53b51b
3 changed files with 17 additions and 1 deletions
@@ -114,4 +114,12 @@ class UserOtherSessionsUITests: MockScreenTestCase {
XCTAssertTrue(button.exists)
XCTAssertFalse(buttonLearnMore.exists)
}
func test_whenNoSessionAreShown_theLayoutIsCorrect() {
app.goToScreenWithIdentifier(MockUserOtherSessionsScreenState.none.title)
let button = app.buttons[VectorL10n.userOtherSessionClearFilter]
let text = app.staticTexts["UserOtherSessions.noItemsText"]
XCTAssertTrue(button.exists)
XCTAssertTrue(text.exists)
}
}