Go through more screens in the integration tests

This commit is contained in:
Stefan Ceriu
2023-08-24 18:20:23 +03:00
committed by Stefan Ceriu
parent 6171d878b0
commit 7712bb0082
4 changed files with 78 additions and 25 deletions
@@ -29,6 +29,7 @@ struct A11yIdentifiers {
static let roomNotificationSettingsScreen = RoomNotificationSettingsScreen()
static let serverConfirmationScreen = ServerConfirmationScreen()
static let sessionVerificationScreen = SessionVerificationScreen()
static let settingsScreen = SettingsScreen()
static let softLogoutScreen = SoftLogoutScreen()
static let startChatScreen = StartChatScreen()
static let roomMemberDetailsScreen = RoomMemberDetailsScreen()
@@ -98,6 +99,7 @@ struct A11yIdentifiers {
let name = "room-name"
let avatar = "room-avatar"
let attachmentPicker = "room-attachment_picker"
let timelineItemActionMenu = "room-timeline_item_action_menu"
}
struct RoomDetailsScreen {
@@ -133,6 +135,10 @@ struct A11yIdentifiers {
let close = "session_verification-close"
}
struct SettingsScreen {
let logout = "settings-logout"
}
struct SoftLogoutScreen {
let title = "soft_logout-title"
let message = "soft_logout-message"
@@ -157,6 +157,8 @@ public struct TimelineItemMenu: View {
}
}
}
.accessibilityElement(children: .combine)
.accessibilityIdentifier(A11yIdentifiers.roomScreen.timelineItemActionMenu)
.presentationDetents([.medium, .large])
.presentationBackground(Color.compound.bgCanvasDefault)
.presentationDragIndicator(.visible)
@@ -166,7 +166,7 @@ struct SettingsScreen: View {
kind: .button {
showingLogoutConfirmation = true
})
.accessibilityIdentifier("logoutButton")
.accessibilityIdentifier(A11yIdentifiers.settingsScreen.logout)
.alert(L10n.screenSignoutConfirmationDialogTitle, isPresented: $showingLogoutConfirmation) {
Button(L10n.screenSignoutConfirmationDialogSubmit,
role: .destructive,