mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Add an accessibility identifier to the timeline item send info
Lets UI tests (and accessibility tooling) target the tappable send-info label (timestamp / Sending failed) directly.
This commit is contained in:
committed by
Stefan Ceriu
parent
1aa9b29eb5
commit
404410b8a2
@@ -165,6 +165,7 @@ enum A11yIdentifiers {
|
||||
|
||||
let messageComposer = "room-message_composer"
|
||||
let sendButton = "room-send_button"
|
||||
let sendInfo = "room-send_info"
|
||||
|
||||
let composerToolbar = ComposerToolbar()
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ private struct TimelineItemSendInfoModifier: ViewModifier {
|
||||
TimelineItemSendInfoLabel(sendInfo: sendInfo)
|
||||
.accessibilityHidden(isAccessibilityHidden)
|
||||
.contentShape(.rect)
|
||||
.accessibilityIdentifier(A11yIdentifiers.roomScreen.sendInfo)
|
||||
// Tap gesture to avoid the message being detected as a button by VoiceOver
|
||||
// (and the action shows a description that is already read to the user).
|
||||
.onTapGesture {
|
||||
|
||||
Reference in New Issue
Block a user