mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Go through more screens in the integration tests
This commit is contained in:
committed by
Stefan Ceriu
parent
6171d878b0
commit
7712bb0082
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user