mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
Add tests
This commit is contained in:
+1
@@ -39,6 +39,7 @@ enum MockUserSessionOverviewScreenState: MockScreenState, CaseIterable {
|
||||
.currentSession(sessionState: .verified),
|
||||
.otherSession(sessionState: .verified),
|
||||
.otherSession(sessionState: .unverified),
|
||||
.otherSession(sessionState: .permanentlyUnverified),
|
||||
.sessionWithPushNotifications(enabled: true),
|
||||
.sessionWithPushNotifications(enabled: false),
|
||||
.remotelyTogglingPushersNotAvailable]
|
||||
|
||||
+5
@@ -93,4 +93,9 @@ class UserSessionOverviewUITests: MockScreenTestCase {
|
||||
let button = app.buttons[buttonId]
|
||||
XCTAssertTrue(button.exists)
|
||||
}
|
||||
|
||||
func test_whenPermanentlySessionSelected_copyIsCorrect() {
|
||||
app.goToScreenWithIdentifier(MockUserSessionOverviewScreenState.otherSession(sessionState: .permanentlyUnverified).title)
|
||||
XCTAssertTrue(app.buttons[VectorL10n.userOtherSessionPermanentlyUnverifiedAdditionalInfo].exists)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user