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:
Matthew Hodgson
2026-08-06 18:56:05 +03:00
committed by Stefan Ceriu
parent 1aa9b29eb5
commit 404410b8a2
2 changed files with 2 additions and 0 deletions
@@ -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 {