update accessibility ids

This commit is contained in:
Ryan Zhao 2023-09-25 16:49:07 +10:00
parent 01671438d5
commit 8721d8c5f3
2 changed files with 6 additions and 3 deletions

View File

@ -345,7 +345,7 @@ final class VisibleMessageCell: MessageCell, TappableLabelDelegate {
lastSearchText: lastSearchText lastSearchText: lastSearchText
) )
bubbleView.accessibilityIdentifier = "Message Body" bubbleView.accessibilityIdentifier = "Message body"
bubbleView.accessibilityLabel = bodyTappableLabel?.attributedText?.string bubbleView.accessibilityLabel = bodyTappableLabel?.attributedText?.string
bubbleView.isAccessibilityElement = true bubbleView.isAccessibilityElement = true
@ -521,6 +521,9 @@ final class VisibleMessageCell: MessageCell, TappableLabelDelegate {
textColor: bodyLabelTextColor, textColor: bodyLabelTextColor,
isOutgoing: (cellViewModel.variant == .standardOutgoing) isOutgoing: (cellViewModel.variant == .standardOutgoing)
) )
openGroupInvitationView.isAccessibilityElement = true
openGroupInvitationView.accessibilityIdentifier = "Community invitation"
openGroupInvitationView.accessibilityLabel = cellViewModel.linkPreview?.title
bubbleView.addSubview(openGroupInvitationView) bubbleView.addSubview(openGroupInvitationView)
bubbleView.pin(to: openGroupInvitationView) bubbleView.pin(to: openGroupInvitationView)
snContentView.addArrangedSubview(bubbleBackgroundView) snContentView.addArrangedSubview(bubbleBackgroundView)

View File

@ -456,8 +456,8 @@ class ThreadSettingsViewModel: SessionTableViewModel<ThreadSettingsViewModel.Nav
"DISAPPEARING_MESSAGES_SUBTITLE_OFF".localized() "DISAPPEARING_MESSAGES_SUBTITLE_OFF".localized()
), ),
accessibility: Accessibility( accessibility: Accessibility(
identifier: "\(ThreadSettingsViewModel.self).disappearing_messages", identifier: "Disappearing messages",
label: "Disappearing messages" label: "\(ThreadSettingsViewModel.self).disappearing_messages"
), ),
onTap: { [weak self] in onTap: { [weak self] in
self?.transitionToScreen( self?.transitionToScreen(